syslogd config patch
Sergey Naumov
sknaumov at gmail.com
Wed Dec 29 08:32:26 UTC 2010
There was a request on my work to make syslog.conf patch more
conformant with original syslog - for example all specified rules
should be applied to the message, not only the first one that fit.
With these requirements I decided to implement such features as
multiple fac.prio blocks in a single row:
kern,user.info;user.!=warning;kern!=error /var/log/some.log
For each row I store char[NUM_FACILITIES] bitmask array. For simple
configs it is not significant overhead, and for complicated configs it
is better, because for 1 complicated rule we store logfile name only
once.
I will test my new patch for some time, also I will apply your code
proposals (because old and new patches are similar enough) and send
new version to you.
Sergey Naumov.
More information about the busybox
mailing list