Log4j乱码

在log4j.properties里添加encoding , 例如 : 

log4j.appender.fuscent=org.apache.log4j.DailyRollingFileAppender

log4j.appender.fuscent.encoding=UTF-8

log4j.appender.fuscent.File=/Users/kane/Work/log/core/fuscent.log

log4j.appender.fuscent.layout=org.apache.log4j.PatternLayout

posted on 2015-04-14 17:31  饕盡天下  阅读(189)  评论(0编辑  收藏  举报