On Thu, Apr 2, 2015 at 1:28 PM, Douglas Borg <[email protected]> wrote:
> Willy Tarreau <w <at> 1wt.eu> writes: > > > > > On Fri, Dec 13, 2013 at 03:43:51AM +0800, Igor wrote: > > > In verbose mode, is it possible to print http log to stdout? > > > > No it's not possible. Do you think it could be useful ? If so, I don't > > think it should be too difficult to do, especially considering that at > > Regards, > > Willy > > > Hi Willy, > > Sorry for replying to such an old message. Hopefully this is still > monitored. > > I do think it would be useful for HAProxy to have configuration options to > print logs directly to stdout/stderr. With container technologies like > Docker, > it is nice to keep to the one process per container rule and not have to > run > rsyslog alongside HAProxy just to ship logs out to stdout/stderr. This also > fits in nicely with the strategy outlined in http://12factor.net/logs. > > Check out https://github.com/dockerfile/haproxy/issues/3. > > I think having an easy way to configure haproxy output logs directly to > stdout > and stderr would be much appreciated by anyone trying to fit haproxy into > thier > stacks running on containers. > It would be nice to allow haproxy to log to stdout; however it is not hard to log from haproxy and not run another logger in the container. Just mount the /dev/log device from the host into the container and log to it from haproxy like normal. If on a systemd host, it'll all go to systemd-journal. -Bryan

