Saturday, April 4, 2015

Log4j

Write log4j with japanese

If you want write log file by encoding “Shift-JIS” or “MS-932″, you must add above code before you write message.
System.setErr(new PrintStream(System.err, true, "utf-8"));
System.setOut(new PrintStream(System.out, true, "utf-8"));

No comments:

Post a Comment