On Wed, 11 Jul 2007 01:44:21 -0700 (PDT)
chirag agarwal <[EMAIL PROTECTED]> wrote:

> Hi All,
>   
>   I have syslog server running on a remote system and trying to configure 
> log4php for the 
>   remote syslog server.

The problem is that the standard "syslog()" function in PHP is not able to
log to a remote host and thus neither is log4php.

There is a LoggerAppenderSocket class though, so "somebody" could write
a subclass that creates syslog messages and send it through this socket.
Maybe there's a pear or pecl package that would be helpful here.


>   There is a parameter "SyslogHost" given in LoggerPropertyConfigurator.php 
> file
Sadly only in the comments, probably a planned feature :)

>   If i dont use "SyslogHost" option , then by default log message goes to 
> local syslog server,
>   which i could see in my local syslog server log files.
You can configure your syslog server to log everything or just i.e. the LOCAL6 
faciltiy to
a remote server in /etc/syslogd.conf:
        *.*             @syslog.example.com

bye,

-christian-


P.S.: What a bout a trunk/TODO file to keep track of such issues?

Reply via email to