How do I set the character encoding ?

2003-10-30 Thread KUROSAKA Teruhiko
Hello, I am new to the list, and to log4j. It seems that log4j writes log in the encoding specified by file.encoding property. Is there a way to override this? I would like to write my log files in UTF-8 encoding regardless of the platform's locale setting. Experimenting with Sort.java sample

RE: How do I set the character encoding ?

2003-10-30 Thread Yu Xiang Xi (Maveo)
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. -Original Message- From: KUROSAKA Teruhiko [mailto:[EMAIL PROTECTED] Sent: 20031030 15:36

RE: basic question from a newbie

2003-10-30 Thread Jim Moore
The string passed to getLogger is arbitrary, but is generally the fully-qualified class name. Here's a bit more concrete example that should make it clearer: class A { private static final Logger SQL_LOG = Logger.getLogger(sql); private static final Logger LOG =

RE: basic question from a newbie

2003-10-30 Thread Vikas Phonsa
Jim, Jeff, Mark, Charles and everybody else Thanks for your answers, it does makes sense to me now. Vikas -Original Message- From: Jim Moore [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 5:44 AM To: 'Log4J Users List' Subject: RE: basic question from a newbie The string