From ef21d92fcff0f53e9c61a15699333f6d3bdbcf8f Mon Sep 17 00:00:00 2001 From: David Malone Date: Wed, 4 Sep 2002 21:11:25 +0000 Subject: Make syslogd -u treat "*" as all levels by explictly setting pri_cmp for it. While I'm here, add a the ability to say "!level" in a way which should be compatible with Linux's syslogd. PR: 28935 No objections: audit MFC after: 2 weeks --- usr.sbin/syslogd/syslog.conf.5 | 11 ++++++++++- usr.sbin/syslogd/syslogd.c | 19 ++++++++++++++----- 2 files changed, 24 insertions(+), 6 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5 index acf6ebce3468..18579a3054cd 100644 --- a/usr.sbin/syslogd/syslog.conf.5 +++ b/usr.sbin/syslogd/syslog.conf.5 @@ -85,7 +85,7 @@ are encoded as a a period .Pq Dq \&. , an optional set of comparison flags -.Pq Bq <=> , +.Pq Bo ! Bc Bq <=> , and a .Em level , with no intervening white-space. @@ -123,6 +123,15 @@ list of a priority level equal or greater than .Em level will be logged. +Comparison flags beginning with +.Do ! Dc +will have their logical sense inverted. +Thus +.Dq !=info +means all levels except info and +.Dq !notice +has the same meaning as +.Dq