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
> _______________________________________________
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to