At 12:43 AM 9/8/2004, Long Pham wrote:
Hi all,

Does anyone know how to tell razor to use syslog instead of writing to
its own log file? I'm using razor 2.61. I tried to set "logfile =
sys-syslog" in razor-agent.conf, but razor loged to a file named
"sys-syslog" in razorhome.

I have searched the archives but couldn't find the answer.

Looking at the code, razor's Logger.pm supports syslog, but Agent.pm will not use it.


In Agent.pm, when setting up the logto variable prior to feeding it to a new Logger instance, it only creates it as stdout or file:.

my $logto = $self->{opt}->{debug} ? "stdout" : "file:$self->{conf}->{logfile}"

In theory one could add a hack that to check if $self->{conf}->{logfile} contained sys-syslog and if it does use it directly without prefixing "file:". However, I'm no perl programmer, so I can't write a patch to do it.





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users

Reply via email to