Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2001 02:24:01 -0700 (PDT)
From:      Chuck Rouillard <chuckr@opus.sandiegoca.ncr.com>
To:        Philip Hallstrom <philip@adhesivemedia.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Is it possible to tell syslog to *not* log something?
Message-ID:  <Pine.BSF.4.31.0105040208470.66244-100000@opus.sandiegoca.ncr.com>
In-Reply-To: <Pine.BSF.4.31.0105031712030.65709-100000@oddjob.adhesivemedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.31.0105040208470.66244-100000>