From efa716f93d3b05d4203b35406884be29019bbfc4 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 8 Mar 2017 12:51:43 +0200 Subject: [PATCH] Bug 18227 - Koha::Logger utf8 handling defeating "wide characters in print" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No more wide characters in print when logging to a file with Koha::Logger. Test with this string "♯Turpo :" --- debian/templates/log4perl-site.conf.in | 2 ++ etc/log4perl.conf | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in index efc4707..4155a0a 100644 --- a/debian/templates/log4perl-site.conf.in +++ b/debian/templates/log4perl-site.conf.in @@ -4,6 +4,7 @@ log4perl.appender.INTRANET.filename=__LOG_DIR__/intranet-error.log 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 @@ -11,3 +12,4 @@ log4perl.appender.OPAC.filename=__LOG_DIR__/opac-error.log log4perl.appender.OPAC.mode=append log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n +log4perl.appender.OPAC.utf8=1 diff --git a/etc/log4perl.conf b/etc/log4perl.conf index ab1abf6..c5c7bf9 100644 --- a/etc/log4perl.conf +++ b/etc/log4perl.conf @@ -7,6 +7,7 @@ log4perl.appender.INTRANET.syswrite=true log4perl.appender.INTRANET.recreate=true 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 @@ -17,6 +18,7 @@ log4perl.appender.OPAC.syswrite=true log4perl.appender.OPAC.recreate=true log4perl.appender.OPAC.layout=PatternLayout log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n +log4perl.appender.OPAC.utf8=1 log4perl.logger.sip = DEBUG, SIP log4perl.appender.SIP=Log::Log4perl::Appender::File @@ -27,3 +29,4 @@ log4perl.appender.SIP.syswrite=true log4perl.appender.SIP.recreate=true log4perl.appender.SIP.layout=PatternLayout log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n +log4perl.appender.SIP.utf8=1 -- 2.7.4