log4j rootLogger配置示例(log4j.properties)

log4j.rootLogger=INFO,commonLogger,

log4j.appender.commonLogger=org.apache.log4j.ConsoleAppender
log4j.appender.commonLogger.target=System.out
log4j.appender.commonLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.commonLogger.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss SSS} %p [%t] %c{1} - %m - (%L)%n
posted @ 2019-05-07 22:22  Joynic  阅读(738)  评论(0编辑  收藏  举报