From 67daec2e5a3bf3eea207fe8250db43878ed7ffc3 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 8 Mar 2017 12:51:43 +0200 Subject: [PATCH] Bug 18227: Handle utf8 in Koha::Logger MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No more wide characters in print when logging to a file with Koha::Logger. Test with this string "♯Turpo :" Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- debian/templates/log4perl-site.conf.in | 3 +++ etc/log4perl.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in index baa64097ad..dbf544466a 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,6 +12,7 @@ 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 log4perl.logger.z3950 = WARN, Z3950 log4perl.appender.Z3950=Log::Log4perl::Appender::File @@ -18,3 +20,4 @@ log4perl.appender.Z3950.filename=__LOG_DIR__/z3950-error.log log4perl.appender.Z3950.mode=append log4perl.appender.Z3950.layout=PatternLayout log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l %n +log4perl.appender.Z3950.utf8=1 diff --git a/etc/log4perl.conf b/etc/log4perl.conf index baa64097ad..dbf544466a 100644 --- a/etc/log4perl.conf +++ b/etc/log4perl.conf @@ -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,6 +12,7 @@ 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 log4perl.logger.z3950 = WARN, Z3950 log4perl.appender.Z3950=Log::Log4perl::Appender::File @@ -18,3 +20,4 @@ log4perl.appender.Z3950.filename=__LOG_DIR__/z3950-error.log log4perl.appender.Z3950.mode=append log4perl.appender.Z3950.layout=PatternLayout log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l %n +log4perl.appender.Z3950.utf8=1 -- 2.39.5