X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4A153D1E28A for ; Sat, 29 Nov 2003 17:57:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36138-04 for ; Sat, 29 Nov 2003 13:57:22 -0400 (AST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id 276CFD1E286 for ; Sat, 29 Nov 2003 13:57:14 -0400 (AST) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1AQ9LL-000GRJ-0Z; Sat, 29 Nov 2003 17:57:19 +0000 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.24) id 1AQ9LH-00022h-3h; Sat, 29 Nov 2003 17:57:15 +0000 Subject: Re: Why both?: /var/log/messages AND /var/log/pgsql. From: Oliver Elphick To: ow Cc: pgsql-admin@postgresql.org In-Reply-To: <20031129133256.17288.qmail@web21404.mail.yahoo.com> References: <20031129133256.17288.qmail@web21404.mail.yahoo.com> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1070128604.7716.39.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 29 Nov 2003 17:56:45 +0000 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/510 X-Sequence-Number: 11497 On Sat, 2003-11-29 at 13:32, ow wrote: > --- ow 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