I too would like to optionally use /dev/log instead of a network connection. 
Less overhead...

Wout.

On Dec 14, 2011, at 16:43 , Michele Mazzucco wrote:

> Hello everybody,
> 
> 
> I am trying to configure haproxy to run on Mac OS X, but I am unable to write 
> logs using syslog.
> 
> I have modified the syslog configuration according to
> 
> http://superuser.com/questions/131578/how-do-you-enable-syslogd-to-accept-incoming-connections-on-snow-leopard-from-re
> 
> and 
> 
> http://hints.macworld.com/article.php?story=20110724103552640
> 
> in order to accept incoming network connections, and I have restarted the 
> syslog daemon, howver I have only succeeded in printing lines such as
> 
> 
> Dec 14 16:47:36 Albook sudo[6245]: michele : TTY=ttys001 ; 
> PWD=/Users/michele/devel/haproxy-1.4.18 ; USER=root ; COMMAND=./haproxy -f 
> config_dec_14.cfg -d
> 
> 
> 
> when haproxy starts.
> 
> My configuration, after stripping many options (stats, timeouts, etc.), is 
> the following:
> 
> global
>   log 172.17.36.220   local2
> 
> defaults
>        mode    http
>        log     global
>        option  httplog
> 
> listen http-in
>  option  httplog
>  option forceclose
>  bind *:80
>  server server1 127.0.0.1:8002 maxconn 32
> 
> 
> My /etc/syslog.conf contains the following line
> local2.*                                              /var/log/haproxy.log
> 
> 
> Is my configuration file wrong or the problem is elsewhere?
> 
> 
> Thanks,
> Michele
> 
> 
> 


Reply via email to