From owner-cvs-all Thu Nov 7 12: 2: 8 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D69D37B401; Thu, 7 Nov 2002 12:02:06 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4F7343E7B; Thu, 7 Nov 2002 12:02:05 -0800 (PST) (envelope-from thomas@cuivre.fr.eu.org) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id D6D452C3D1; Thu, 7 Nov 2002 21:02:04 +0100 (CET) Date: Thu, 7 Nov 2002 21:02:04 +0100 From: Thomas Quinot To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: [src] cvs commit: src/usr.sbin/syslogd syslogd.c Message-ID: <20021107200204.GA6750@melusine.cuivre.fr.eu.org> Reply-To: thomas@cuivre.fr.eu.org References: <20021107195531.6549D37B4A8@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021107195531.6549D37B4A8@hub.freebsd.org> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le 2002-11-07, Thomas Quinot écrivait : > Log: > Factor out the code that determines whether a message must be skipped > as a consequence of a host or program name specification into a common > function, skip_pmessage. This is in preparation of a functional improvement proposal: to allow the specification of multiple programs/host names for each entry. Currently, you can have *.* all.log !ppp *.* ppp.log If you want to avoid duplicate log entries, you can also use: !-ppp *.* all.log !ppp *.* ppp.log But then if you also have !ipmon *.* ipmon.log then you cannot have an all.log file from which you exclude *both* ppp and ipmon entries. The proposed future change would allow the following syntax: !-ppp,-ipmon *.* all.log !ppp *.* ppp.log !ipmon *.* ipmon.log If a log file is configured with a program specification, then a message would be logged only if it matches any of the positive program indications, and none of the negative specifications. The same would hold for host specifications. Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message