"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.Elphick@lfix.co.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