From owner-freebsd-questions Fri May 4 2:21:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from opus.sandiegoca.ncr.com (tan7.ncr.com [192.127.94.7]) by hub.freebsd.org (Postfix) with ESMTP id 7EA5937B422 for ; Fri, 4 May 2001 02:21:49 -0700 (PDT) (envelope-from chuckr@opus.sandiegoca.ncr.com) Received: from localhost (chuckr@localhost) by opus.sandiegoca.ncr.com (8.11.1/8.11.1) with ESMTP id f449O1W66280; Fri, 4 May 2001 02:24:01 -0700 (PDT) (envelope-from chuckr@opus.sandiegoca.ncr.com) Date: Fri, 4 May 2001 02:24:01 -0700 (PDT) From: Chuck Rouillard To: Philip Hallstrom Cc: Subject: Re: Is it possible to tell syslog to *not* log something? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 3 May 2001, Philip Hallstrom wrote: > Hi - > Given the example syslog.conf file below, messages generated by > the "postgres" program of level "notice" will get logged to both places. > Is there a way to only have it log to the latter log entry? > > ------------------------------------------------------------ > *.notice /var/log/messages > > !postgres > *.* /var/log/postgres.log > ------------------------------------------------------------ [snip] *.notice;postgres.none /var/log/messages The man pages for both `syslog.conf' and `logger' may prove useful. Here's a quick logger example: # logger -p postgres.notice -t test Postgres notice test. .cr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message