Mercurial > lbo > hg > syslog
changeset 27:ceb9bd6d94e2 draft
Change pattern evaluation model to what rsyslogd does
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 04 Dec 2016 17:47:55 +0100 |
parents | 071e6d446dbd |
children | 07f67992c899 |
files | prototype.toml |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/prototype.toml Sun Dec 04 17:47:36 2016 +0100 +++ b/prototype.toml Sun Dec 04 17:47:55 2016 +0100 @@ -49,7 +49,7 @@ # A single level matches all levels that are more important than itself and itself (crit matches crit, alert and emerg). # A single level prefixed by '=' matches only that level ('=crit' matches only crit). # -# The evaluation order inside a pattern is left-to-right; as soon as a filter matches, the pattern matches. +# The evaluation order inside a pattern is left-to-right; all filters must match a message. # # If a rule has the stop property set to 'true', then evaluation stops if the pattern matched. [[rules]] @@ -66,7 +66,8 @@ stop = true [[rules]] -pattern = "*.info" +# Log all info messages except for messages coming from mail to infolog. +pattern = "*.info;mail.none" dest = "infolog" [[rules]]