Bugzilla – Attachment 121466 Details for
Bug 28477
INTRANET and OPAC loggers should print to STDERR instead of to file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28477: Change INTRANET and OPAC logs to use STDERR rather than file
Bug-28477-Change-INTRANET-and-OPAC-logs-to-use-STD.patch (text/plain), 2.57 KB, created by
David Cook
on 2021-05-28 00:31:38 UTC
(
hide
)
Description:
Bug 28477: Change INTRANET and OPAC logs to use STDERR rather than file
Filename:
MIME Type:
Creator:
David Cook
Created:
2021-05-28 00:31:38 UTC
Size:
2.57 KB
patch
obsolete
>From 2f1450f9fb00d95b6d1b9f5a9a7d4bbd6e432276 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Fri, 28 May 2021 00:30:38 +0000 >Subject: [PATCH] Bug 28477: Change INTRANET and OPAC logs to use STDERR rather > than file > >This patch changes the default Log4Perl config to use STDERR instead >of the Apache log files for the INTRANET and OPAC loggers. >--- > debian/templates/log4perl-site.conf.in | 8 ++++---- > etc/log4perl.conf | 8 ++++---- > 2 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in >index 4db8f89be8..319a5446ef 100644 >--- a/debian/templates/log4perl-site.conf.in >+++ b/debian/templates/log4perl-site.conf.in >@@ -1,14 +1,14 @@ > log4perl.logger.intranet = WARN, INTRANET >-log4perl.appender.INTRANET=Log::Log4perl::Appender::File >-log4perl.appender.INTRANET.filename=__LOG_DIR__/intranet-error.log >+log4perl.appender.INTRANET=Log::Log4perl::Appender::Screen >+log4perl.appender.INTRANET.stderr=1 > log4perl.appender.INTRANET.mode=append > log4perl.appender.INTRANET.layout=PatternLayout > log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l %n > log4perl.appender.INTRANET.utf8=1 > > log4perl.logger.opac = WARN, OPAC >-log4perl.appender.OPAC=Log::Log4perl::Appender::File >-log4perl.appender.OPAC.filename=__LOG_DIR__/opac-error.log >+log4perl.appender.OPAC=Log::Log4perl::Appender::Screen >+log4perl.appender.OPAC.stderr=1 > log4perl.appender.OPAC.mode=append > log4perl.appender.OPAC.layout=PatternLayout > log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n >diff --git a/etc/log4perl.conf b/etc/log4perl.conf >index 940c2d0397..a36a4d908e 100644 >--- a/etc/log4perl.conf >+++ b/etc/log4perl.conf >@@ -1,14 +1,14 @@ > log4perl.logger.intranet = WARN, INTRANET >-log4perl.appender.INTRANET=Log::Log4perl::Appender::File >-log4perl.appender.INTRANET.filename=__LOG_DIR__/intranet-error.log >+log4perl.appender.INTRANET=Log::Log4perl::Appender::Screen >+log4perl.appender.INTRANET.stderr=1 > log4perl.appender.INTRANET.mode=append > log4perl.appender.INTRANET.layout=PatternLayout > log4perl.appender.INTRANET.layout.ConversionPattern=[%d] [%p] %m %l %n > log4perl.appender.INTRANET.utf8=1 > > log4perl.logger.opac = WARN, OPAC >-log4perl.appender.OPAC=Log::Log4perl::Appender::File >-log4perl.appender.OPAC.filename=__LOG_DIR__/opac-error.log >+log4perl.appender.OPAC=Log::Log4perl::Appender::Screen >+log4perl.appender.OPAC.stderr=1 > log4perl.appender.OPAC.mode=append > log4perl.appender.OPAC.layout=PatternLayout > log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28477
: 121466 |
121467