I've seen examples of how to set utf8, such as in the faq:
log4perl.appender.Logfile.utf8 = 1
and in a number of posts to this list. But I can't find it
documented.
I have a config that logs to the screen, syslog, and to a file so I
have:
log4perl.appender.syslogAppender = Log::Dispatch::Syslog
log4perl.appender.syslogAppender.utf8 = 1
...
# Write to the screen.
#
log4perl.appender.screenAppender = Log::Log4perl::Appender::Screen
log4perl.appender.screenAppender.utf8 = 1
log4perl.appender.errorNotify = Log::Log4perl::Appender::File
log4perl.appender.errorNotify.utf8 = 1
Yet, I still get wide character errors (and with syslog it throws an
exception).
Wide character in syswrite at /usr/lib/perl/5.8/Sys/Syslog.pm line 765.
I have centralized logging so I can encode_utf8 in one place to fix,
but I'm curious if there's a way to have Log4perl handle the encoding.
--
Bill Moseley
mo...@ha...
Sent from my iMutt
|