List Info

Thread: Re: How to set SyslogHost for log4php




Re: How to set SyslogHost for log4php
country flaguser name
Norway
2007-07-13 17:55:53
chirag agarwal wrote:
> There is a parameter "SyslogHost" given in 
> LoggerPropertyConfigurator.php file to set the
> remote syslog server host name.I tried configuring that
but getting 
> the error message
> "LoggerOptionConverter::setProperty() No such
setter method for 
> [SyslogHost] property in loggerappendersyslog. in"
.
The example in the documentation is wrong here. There is no
property 
SyslogHost on LoggerAppenderSyslog (I don't know where this
example come 
from). The "SyslogHost" property is only referred
to as an example in 
LoggerPropertyConfigurator. I've corrected this example in
my working 
copy so it will be fixed in my next check in.

I think the solution is to configure syslog.conf to log to
the remote 
syslog server instead.

Knut

PS! Please don't double post. It's a bit messy to have two
threads on 
the same topic. Use the user-list for user-related questions
as this one 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )