logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KUROSAKA Teruhiko <k...@bhlab.com>
Subject Re: How do I set the character encoding ?
Date Mon, 03 Nov 2003 21:57:10 GMT
Thank you for your reply.
Yes, this worked and setEncoding was called.
However, setEncoding did not have any effect; the
appender kept writing logs in the encoding specified
by file.encoding property, rather than UTF-8.

Anybody has any success story to write log file in
UTF-8 using log4j ?

Yu Xiang Xi (Maveo) wrote:

> If you change 
> 	static Logger logger = Logger.getLogger(Sort.class.getName());
> to 
> 	static Logger logger = Logger.getRootLogger();
> you will see 'setEncoding called.' in the console.

KUROSAKA ("Kuro") Teruhiko
San Francisco, California, USA

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message