I've just installed haproxy on my test server.
Is there a way of making it write its logs to a local file, rather than syslog?
This is only for testing so I don't want to start opening ports / cluttering up syslog with all my test data.
Unfortunately, the only information I can find all revolves around logging to a syslog server.
I tried using:
log /home/user/ha.log local0
in my config. But that told me:
[ALERT] 039/095022 (9528) : sendto logger #1 failed: No such file or directory (errno=2)
When I restarted. So I created the file with
touch /home/user/ha.log and restarted at which point I got:
[ALERT] 039/095055 (9593) : sendto logger #1 failed: Connection refused (errno=111)
Is this possible, or am I going to have to configure syslog etc. to see my test data?