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
> some places we already support addresses such as "fd <at> number". We could
> imagine that "fd <at> 1" would simply send to stdout if we used write()
> instead of send() and removed a few controls there. We could also use
> another method to explicitly mention "stdout" and "stderr" as valid
> targets.
> 
> 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.

Best Regards,

Doug


Reply via email to