From owner-freebsd-hackers Tue Feb 18 19:40:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA27940 for hackers-outgoing; Tue, 18 Feb 1997 19:40:43 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA27888 for ; Tue, 18 Feb 1997 19:40:18 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id OAA09285 for hackers@freebsd.org; Wed, 19 Feb 1997 14:09:34 +1030 (CST) From: Michael Smith Message-Id: <199702190339.OAA09285@genesis.atrad.adelaide.edu.au> Subject: License to kill annoying syslog feature? To: hackers@freebsd.org Date: Wed, 19 Feb 1997 14:09:33 +1030 (CST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk If I have a syslog.conf fragment like : ! *.notice /var/log/messages !zog * /var/log/zog.log And the 'zog' programs logs something at *.notice, the log message ends up in both places. This is a _spectacular_ pain in the ass with things like socks, which are odiously verbose. (And some of our own software, but I have a brick waiting for the pleb responsible for that problem, so we can ignore it here.) I'd like to know what people think about a couple of possibilities : 1) Only log stuff to the 'wildcard' file entry if it hasn't matched another rule already. or 2) Add another meta-config entry like !, say %, which implies that log messages from the named program will _only_ be processed according to the following rule(s). Of the two, 1) is likely to have the traditionalists unhappy but introduces fewer platform incompatabilities. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[