I've seen several examples (see below) of HAProxy logging configuration that all look like this:
/etc/haproxy/haproxy.cfg
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
...
If I understand correctly this will send logs to /dev/log with facility local0
and for level notice
and above, send the same logs with facility local1
. What is the purpose of this duplication?
Examples of this configuration in the wild: