I created the attached patches to allow for charset translation on the
SyslogAppender. When using log4j on a S390 system it will send all the
datagrams in EBCDIC, instead of ASCII. With the patch you can add an
optional charset for example:
log4j.appender.UnixSyslog.SyslogHost=myhost/US-ASCII
I was not sure if it was acceptable to share a property like this. I started
to make a charset property but it turned out to be more efficient to share
SyslogHost, mostly due to the order objects seemed to be created.
Could this patch be added to a future release?
Thanks.
Jay van der Meer
|