pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lamar Owen <lamar.owen@wgcr.org>
To: Anders R. Sveen <anderssv@stud.ntnu.no>
Cc: pgsql-admin@postgresql.org
Subject: Re: Logging
Date: Mon, 20 Nov 2000 14:57:41 -0500
Message-ID: <3A198235.AE3DF04E@wgcr.org> (raw)
References: <Pine.GS4.4.21.0011201954360.1155-100000@ild.stud.ntnu.no>

"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



view thread (11+ messages)  latest in thread

Message-ID: <3A198235.AE3DF04E@wgcr.org>
Permalink:  ../3A198235.AE3DF04E@wgcr.org/
Also on:    postgresql.org/message-id/3A198235.AE3DF04E@wgcr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: lamar.owen@wgcr.org, anderssv@stud.ntnu.no
  Subject: Re: Logging
  In-Reply-To: <3A198235.AE3DF04E@wgcr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox