]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] log: ability to override the syslog tag
authorKevinm <kevinmusker@gmail.com>
Wed, 22 Dec 2010 16:08:21 +0000 (16:08 +0000)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Dec 2010 10:43:36 +0000 (11:43 +0100)
commit48936af9a2c7e3b49d8546e5b01332a10bdefc6b
tree6ab3b4fde62ad95e86025277ac00982b4d7c87a1
parent48a7e72c5d19df8ebe260248796e01aade8bea44
[MINOR] log: ability to override the syslog tag

One of the requirements we have is to run multiple instances of haproxy on a
single host; this is so that we can split the responsibilities (and change
permissions) between product teams. An issue we ran up against is how we
would distinguish between the logs generated by each instance. The solution
we came up with (please let me know if there is a better way) is to override
the application tag written to syslog. We can then configure syslog to write
these to different files.

I have attached a patch adding a global option 'log-tag' to override the
default syslog tag 'haproxy' (actually defaults to argv[0]).
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/haproxy.c
src/log.c