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.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to