
Hi Jörg, thanks, I added it to the CVS. :) -Martini On Fri, Apr 23, 2004 at 10:04:08AM +0200, Joerg Friedrich wrote:
Hi! just a small hack to configure the Syslog-Facility in Config.pm feel free to improve it.
--- Kernel/System/Log/SysLog.pm.orig 2004-04-23 09:46:22.000000000 +0200 +++ Kernel/System/Log/SysLog.pm 2004-04-23 10:02:07.000000000 +0200 @@ -27,6 +27,9 @@ my $Self = {}; bless ($Self, $Type);
+ $Self->{SysLogFacility} = $Param{ConfigObject}->Get('LogModule::SysLog::Facility') + || 'user'; + return $Self; } # -- @@ -37,7 +40,7 @@ # start syslog connect # -- setlogsock('unix'); - openlog($Param{LogPrefix}, 'cons,pid', 'user'); + openlog($Param{LogPrefix}, 'cons,pid', $Self->{SysLogFacility});
if ($Param{Priority} =~ /debug/i) { syslog('debug', "[Debug][$Param{Module}][$Param{Line}] $Param{Message}");
-- Jörg Friedrich _______________________________________________