| From: | Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> |
|---|---|
| To: | "Anders R(dot) Sveen" <anderssv(at)stud(dot)ntnu(dot)no> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Logging |
| Date: | 2000-11-20 19:57:41 |
| Message-ID: | 3A198235.AE3DF04E@wgcr.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-general |
"Anders R. Sveen" wrote:
> I've set my pg_options file to write log messages, but it only logs to
> /var/log/messages instead of /var/log/postgresql wich remains empty.
> Why is that and how can i change it? Maybe it's a sylog question, but
> beeing new to it and all i can't really figure things out.
You need to edit /etc/syslog.conf to direct the output of PostgreSQL to
the file you wish to hold the log. The facility used by default in
7.0.3 is local0, so a line:
local0.* /var/log/postgresql
will do what you expect.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rainer Mager | 2000-11-21 00:24:54 | Postgres 7 pgdump problems |
| Previous Message | Anders R. Sveen | 2000-11-20 18:57:11 | Logging |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2000-11-20 20:02:14 | Re: Does pg_dump ignore indexes? |
| Previous Message | Anders R. Sveen | 2000-11-20 18:57:11 | Logging |