View | Details | Raw Unified | Return to bug 15253
Collapse All | Expand All

(-)a/Koha/Logger.pm (-1 lines)
Lines 118-124 sub DESTROY { } Link Here
118
118
119
sub _init {
119
sub _init {
120
    my $rv;
120
    my $rv;
121
    $ENV{"LOG4PERL_CONF"} = C4::Context->config("log4perl_conf"); #Supercharge Koha::Log to skip unnecessary configuration file checking on each log attempt
122
    if ( exists $ENV{"LOG4PERL_CONF"} and $ENV{'LOG4PERL_CONF'} and -s $ENV{"LOG4PERL_CONF"} ) {
121
    if ( exists $ENV{"LOG4PERL_CONF"} and $ENV{'LOG4PERL_CONF'} and -s $ENV{"LOG4PERL_CONF"} ) {
123
122
124
        # Check for web server level configuration first
123
        # Check for web server level configuration first
(-)a/etc/log4perl.conf (-7 / +5 lines)
Lines 19-29 log4perl.appender.OPAC.layout=PatternLayout Link Here
19
log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n
19
log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n
20
20
21
log4perl.logger.sip = DEBUG, SIP
21
log4perl.logger.sip = DEBUG, SIP
22
log4perl.appender.SIP=Log::Log4perl::Appender::File
22
log4perl.logger.sip = DEBUG, SIP
23
log4perl.appender.SIP.filename=__LOG_DIR__/sip2.log
23
log4perl.appender.SIP           = Log::Dispatch::Syslog
24
log4perl.appender.SIP.mode=append
24
log4perl.appender.SIP.min_level = debug
25
log4perl.appender.SIP.create_at_logtime=true
25
log4perl.appender.SIP.ident     = koha_sip
26
log4perl.appender.SIP.syswrite=true
26
log4perl.appender.SIP.facility  = local6
27
log4perl.appender.SIP.recreate=true
28
log4perl.appender.SIP.layout=PatternLayout
27
log4perl.appender.SIP.layout=PatternLayout
29
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
28
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n
30
- 

Return to bug 15253