aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /docs
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'docs')
-rw-r--r--docs/syslog.conf.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/syslog.conf.txt b/docs/syslog.conf.txt
new file mode 100644
index 000000000..6d9c4a173
--- /dev/null
+++ b/docs/syslog.conf.txt
@@ -0,0 +1,28 @@
1If syslogd applet compiled with FEATURE_SYSLOGD_CFG=y, then it supports restricted syslog.conf.
2The config resembles rsyslog.conf in RULES part:
3
4LINE = DELIM [RULE | COMMENT]
5COMMENT = #.*
6DELIM = SPACE TAB
7RULE = SELECTOR [;SELECTOR]* DELIM* ACTION DELIM*
8SELECTOR = FACILITY [,FACILITY]* .[[!]=] PRIORITY
9FACILITY = * | kern | user ... (see syslog.h)
10PRIORITY = * | emerg | alert ... (see syslog.h)
11ACTION = FILE
12
13"mark" facility is NOT supported.
14"none" priority is supported.
15In FACILITY and PRIORITY "*" stands for "any".
16FILE is a regular file or tty device.
17
18Here is an example:
19
20#syslog.conf
21kern,user.* /var/log/messages #all messages of kern and user facilities
22kern.!err /var/log/critical #all messages of kern facility with priorities lower than err (warn, notice ...)
23*.*;auth,authpriv.none /var/log/noauth #all messages except ones with auth and authpriv facilities
24kern,user.*;kern.!=notice;*.err;syslog.none /var/log/OMG #some whicked rule just as an example =)
25*.* /dev/null #this prevents from logging to default log file (-O FILE or /var/log/messages)
26
27Even in the case of match with some rule another rules will be tried too.
28If there was no match with any of the rules, logging to default log file or shared memory will be performed.