[otrs-cvs] otrs/Kernel/System/Log SysLog.pm,1.14,1.15

cvs-log at otrs.org cvs-log at otrs.org
Tue Apr 1 10:23:43 GMT 2008


Comments:
Update of /home/cvs/otrs/Kernel/System/Log
In directory lancelot:/tmp/cvs-serv27480/Kernel/System/Log

Modified Files:
	SysLog.pm 
Log Message:
Added new SysLog backend config for log sock. Defaulte use is 'unix'. On Solaris you may need to use 'stream'.

Author: martin

Index: SysLog.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Log/SysLog.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** SysLog.pm	2 Oct 2007 10:38:08 -0000	1.14
--- SysLog.pm	1 Apr 2008 10:23:38 -0000	1.15
***************
*** 1,5 ****
  # --
  # Kernel/System/Log/SysLog.pm - a wrapper for Sys::Syslog or xyz::Syslog
! # Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
  # --
  # $Id$
--- 1,5 ----
  # --
  # Kernel/System/Log/SysLog.pm - a wrapper for Sys::Syslog or xyz::Syslog
! # Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
  # --
  # $Id$
***************
*** 7,11 ****
  # This software comes with ABSOLUTELY NO WARRANTY. For details, see
  # the enclosed file COPYING for license information (GPL). If you
! # did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
  # --
  
--- 7,11 ----
  # This software comes with ABSOLUTELY NO WARRANTY. For details, see
  # the enclosed file COPYING for license information (GPL). If you
! # did not receive this file, see http://www.gnu.org/licenses/gpl-2.0.txt.
  # --
  
***************
*** 59,63 ****
  
      # start syslog connect
!     setlogsock('unix');
      openlog( $Param{LogPrefix}, 'cons,pid', $Self->{SysLogFacility} );
  
--- 59,64 ----
  
      # start syslog connect
!     my $LogSock  = $Self->{ConfigObject}->Get('LogModule::SysLog::LogSock') || 'unix';
!     setlogsock($LogSock);
      openlog( $Param{LogPrefix}, 'cons,pid', $Self->{SysLogFacility} );
  
***************
*** 77,87 ****
  
          # print error messages to STDERR
!         print STDERR
!             "[Error][$Param{Module}] Priority: '$Param{Priority}' not defined! Message: $Param{Message}\n";
  
          # and of course to syslog
!         syslog( 'err',
!             "[Error][$Param{Module}] Priority: '$Param{Priority}' not defined! Message: $Param{Message}"
!         );
      }
  
--- 78,85 ----
  
          # print error messages to STDERR
!         print STDERR "[Error][$Param{Module}] Priority: '$Param{Priority}' not defined! Message: $Param{Message}\n";
  
          # and of course to syslog
!         syslog( 'err', "[Error][$Param{Module}] Priority: '$Param{Priority}' not defined! Message: $Param{Message}" );
      }
  


More information about the cvs-log mailing list