From d6fdcd73d96716a61c095e43f3014b36bdce0d01 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 4 Jan 2017 10:48:42 +0200 Subject: [PATCH] Bug 15253 - Add Koha::Logger based logging for SIP2 - Revert testing changes Remove changes intended to help test the feature. -Put Koha::Logger back to silently failing mode -Revert to log using syslog Signed-off-by: Kyle M Hall --- Koha/Logger.pm | 1 - etc/log4perl.conf | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Koha/Logger.pm b/Koha/Logger.pm index 8c64619..ed85c99 100644 --- a/Koha/Logger.pm +++ b/Koha/Logger.pm @@ -118,7 +118,6 @@ sub DESTROY { } sub _init { my $rv; - $ENV{"LOG4PERL_CONF"} = C4::Context->config("log4perl_conf"); #Supercharge Koha::Log to skip unnecessary configuration file checking on each log attempt if ( exists $ENV{"LOG4PERL_CONF"} and $ENV{'LOG4PERL_CONF'} and -s $ENV{"LOG4PERL_CONF"} ) { # Check for web server level configuration first diff --git a/etc/log4perl.conf b/etc/log4perl.conf index ab1abf6..12d44be 100644 --- a/etc/log4perl.conf +++ b/etc/log4perl.conf @@ -19,11 +19,10 @@ log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n log4perl.logger.sip = DEBUG, SIP -log4perl.appender.SIP=Log::Log4perl::Appender::File -log4perl.appender.SIP.filename=__LOG_DIR__/sip2.log -log4perl.appender.SIP.mode=append -log4perl.appender.SIP.create_at_logtime=true -log4perl.appender.SIP.syswrite=true -log4perl.appender.SIP.recreate=true +log4perl.logger.sip = DEBUG, SIP +log4perl.appender.SIP = Log::Dispatch::Syslog +log4perl.appender.SIP.min_level = debug +log4perl.appender.SIP.ident = koha_sip +log4perl.appender.SIP.facility = local6 log4perl.appender.SIP.layout=PatternLayout log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n -- 2.1.4