Add stop processing option
This allows to use dedicated log files for some services. This is
especially useful when journald is around and forward logs to syslog.
Change-Id: I1edb2300d9596350567ba766a1b87cf6cd88aedb
diff --git a/README.rst b/README.rst
index 66a93da..c1126d4 100644
--- a/README.rst
+++ b/README.rst
@@ -27,7 +27,7 @@
format:
name: TraditionalFormatWithPRI
template: '"%syslogpriority% %syslogfacility% %timestamp:::date-rfc3339% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"'
- logfiles:
+ output:
file:
-/var/log/syslog:
filter: *.*;auth,authpriv.none
@@ -63,6 +63,13 @@
filter: *.emerg
"|/dev/xconsole":
filter: "daemon.*;mail.*; news.err; *.=debug;*.=info;*.=notice;*.=warn":
+ -/var/log/your-app.log:
+ filter: "if $programname startswith 'your-app' then"
+ owner: syslog
+ group: adm
+ createmode: 0640
+ umask: 0022
+ stop_processing: true
Read more