pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Anders R. Sveen <anderssv@stud.ntnu.no>
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Logging
Date: Wed, 22 Nov 2000 20:25:44 +0000
Message-ID: <200011222025.eAMKPk609371@linda.lfix.co.uk> (raw)
In-Reply-To: <anderssv@stud.ntnu.no> <Pine.GS4.4.21.0011201954360.1155-100000@ild.stud.ntnu.no>

"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 





view thread (11+ messages)  latest in thread

Message-ID: <200011222025.eAMKPk609371@linda.lfix.co.uk>
Permalink:  ../200011222025.eAMKPk609371@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/200011222025.eAMKPk609371@linda.lfix.co.uk

 · 

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: olly@lfix.co.uk, anderssv@stud.ntnu.no
  Subject: Re: [GENERAL] Logging
  In-Reply-To: <200011222025.eAMKPk609371@linda.lfix.co.uk>

* 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