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
[EMAIL PROTECTED]
Sent from my iMutt


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to