You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by HIRATA Tadashi <he...@mb.infoweb.ne.jp> on 2001/11/06 16:57:43 UTC
I18N of RollingFileAppender
Hello all,
It seems to me that there is no way to specify the encoding
of log files in FileAppender (it always uses system default
encoding).
The problem in the real world is that there are three major
encodings for Japanese (my mother tongue), and I sometimes
need to specify the one which isn't system default.
You can prepare appropriate Writer object and use
setWriter() method for WriterAppender, but it's pretty
complicated for Rolling/DailyRollingFileAppender. I hope it
has
RollingFileAppender(String layout, String file, String encoding)
constructor or so, and a property for it.
Is there any work around? Any advice will be welcome.
----------
Hirata Tadashi
heita@mb.infoweb.ne.jp
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>