From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | "Anders R(dot) Sveen" <anderssv(at)stud(dot)ntnu(dot)no> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Logging |
Date: | 2000-11-22 20:25:44 |
Message-ID: | 200011222025.eAMKPk609371@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Anders R. Sveen" wrote:
>Hey,
>
>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.
The docs say: Messages printed to syslog use the log facility LOG_LOCAL0.
You need to configure syslogd to send those messages to postgresql; edit
/etc/syslog.conf (see the man page for syslogd and syslog.conf) to
contain something like:
local0.* -/var/log/postgresql
You may want to change this to be more selective...
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Can two walk together, except they be agreed?"
Amos 3:3
From | Date | Subject | |
---|---|---|---|
Next Message | Warren Vanichuk | 2000-11-22 23:01:14 | Tuning pointers for the DB. |
Previous Message | Dronamraju Rajesh | 2000-11-22 14:52:09 | vacuum....errors...killing my PRODUCTION servers |