When you're using a log4j.properties file:
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.encoding=UTF-8
When youre using a log4j.xml file:
<appender name="R"Enjoy!
class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="info-log.log"/>
<param name="Encoding" value="UTF-8"/>
...
...
</appender>
Neat! I'm sure I'm gonna need this someday... Keep posting! :D
ReplyDeleteIts not working properly.instead of 는못하는 사람이 it is adding 는못하는 ì‚¬ëžŒì´ to log file
ReplyDelete