Re: Logging

Поиск
Список
Период
Сортировка
От Lamar Owen
Тема Re: Logging
Дата
Msg-id 3A198235.AE3DF04E@wgcr.org
обсуждение исходный текст
Ответ на Logging  ("Anders R. Sveen" <anderssv@stud.ntnu.no>)
Ответы Postgres 7 pgdump problems  ("Rainer Mager" <rmager@vgkk.com>)
Список pgsql-admin
"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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Anders R. Sveen"
Дата:
Сообщение: Logging
Следующее
От: "Rainer Mager"
Дата:
Сообщение: Postgres 7 pgdump problems