最简单的log4j配置

log4j.rootLogger=info,console

log4j.appender.console=org.apache.log4j.ConsoleAppender

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

log4j.appender.console.layout.ConversionPattern=[%p-%d{yyyy/MM/dd/HH\:mm\:ss}] \u7ebf\u7a0b\u4fe1\u606f:%t  \u8c03\u7528\u65b9\u6cd5:(%F:%L)%n \u8f93\u51fa:%m%n



你可能感兴趣的:(最简单的log4j配置)