From: Oliver Elphick <olly@lfix.co.uk>
To: ow <oneway_111@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Why both?: /var/log/messages AND /var/log/pgsql.
Date: Sat, 29 Nov 2003 17:56:45 +0000
Message-ID: <1070128604.7716.39.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <20031129133256.17288.qmail@web21404.mail.yahoo.com>
References: <20031129133256.17288.qmail@web21404.mail.yahoo.com>
On Sat, 2003-11-29 at 13:32, ow wrote:
> --- ow <oneway_111@yahoo.com> wrote:
> > pgSql 7.4.0 on RH7.3
> >
> > Hi,
> >
> > It appears that pgSql somehow logs messages to BOTH /var/log/messages and
> > /var/log/pgsql. I expected that it would only log to /var/log/pgsql.
> >
>
> It appears I forgot to add local0.none on the /var/log/messages line in
> /etc/syslog.conf. Once added it logs only to /var/log/pgsql.
>
> Strange though ... when I changed "local0" to "pgsql" in /etc/syslog.conf and
> /var/lib/pgsql/data/postgresql.conf the logging stopped completely. Works with
> local0 though. Anyhow
The log-levels (panic,...info,...local0,...) are enumerated values
hardcoded in syslog; pgsql is not one of those, so syslog would not
recognise it or act on it.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Who shall ascend into the hill of the LORD? or who
shall stand in his holy place? He that hath clean
hands, and a pure heart..." Psalms 24:3,4
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: olly@lfix.co.uk, oneway_111@yahoo.com
Subject: Re: Why both?: /var/log/messages AND /var/log/pgsql.
In-Reply-To: <1070128604.7716.39.camel@linda.lfix.co.uk>
References: <20031129133256.17288.qmail@web21404.mail.yahoo.com> <1070128604.7716.39.camel@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