JPHC> I've trouble logging my haproxy on freebsd 7.2 HA-Proxy version 1.4.2
JPHC> 2010/03/17
Are you using the net/haproxy port?
Make sure the log files exist and/or use the "-C" option (create
non-existent log files) for syslogd.
Here's an example that works on my test system:
-= /etc/rc.conf
syslogd_enable="YES"
syslogd_flags="-b localhost -C"
-=
-= /usr/local/etc/haproxy.conf
global
daemon # set to daemonize
log 127.0.0.1:514 local1 debug # syslog logging
-=
-= /etc/syslog.conf
local1.* /var/log/haproxy.log
-=
Doing a /usr/local/etc/rc.d/haproxy reload generates a bunch of log
entries nicely for each config section. You might want to turn down
debug mode though. :-)
R.
--