X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 567CA475F16 for ; Wed, 23 Apr 2003 14:44:33 -0400 (EDT) Received: from polaris.pinpointresearch.com (66-7-238-176.cust.telepacific.net [66.7.238.176]) by postgresql.org (Postfix) with ESMTP id D5C95474E42 for ; Wed, 23 Apr 2003 14:44:01 -0400 (EDT) Received: from there (66-7-238-179.cust.telepacific.net [66.7.238.179]) by polaris.pinpointresearch.com (Postfix) with SMTP id D70CA103C9; Wed, 23 Apr 2003 11:43:56 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" From: Steve Crawford Organization: Pinpoint Research To: Adam Kessel , pgsql-admin@postgresql.org Subject: Re: Log Output Going to STDERR even with silent mode on Date: Wed, 23 Apr 2003 10:43:56 -0800 X-Mailer: KMail [version 1.3.1] References: <20030416155613.GJ10022@bostoncoop.net> In-Reply-To: <20030416155613.GJ10022@bostoncoop.net> MIME-Version: 1.0 Message-Id: <20030423184356.D70CA103C9@polaris.pinpointresearch.com> Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/316 X-Sequence-Number: 8471 Here is what your conf file has: log_connections =3D true log_pid =3D true #log_statement =3D false #log_duration =3D false log_timestamp =3D true ... syslog =3D 0 # range 0-2 #syslog_facility =3D 'LOCAL0' #syslog_ident =3D 'postgres' 0 means route to stdout, 2 to syslog, 1 to both. I use the following to log to syslog only on 7.3.1: syslog =3D 2 syslog_facility =3D 'LOCAL4'=20 syslog_ident =3D 'postgres' Choose the syslog facility that's best for you - match in syslog.conf. Restart postgres after changing. Cheers, Steve On Wednesday 16 April 2003 8:56 am, Adam Kessel wrote: > I've read through the postgresql.conf documentation and searched the > history of this list and been unable to solve this problem. > > Since I upgraded from pgsql 7.2 to 7.3, all logging messages are going to > STDERR and thus ending up in my apache error log. I have silent mode set > to true and syslog set to 0. Messages are going to > /var/log/postgresql/postgres.log as well, so I don't see why they should > to both places. > > Messages are not appearing in syslog, as expected. > > I have placed the configuration file at > > http://bostoncoop.net/adam/temp/postgresql.conf > > in case that is helpful. > > Any advice would be appreciated! > > --Adam Kessel > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly