首页 > 代码库 > log4j 每次运行生成文件

log4j 每次运行生成文件

log4j.debug = true
log4j.rootLogger = debug, TEST
log4j.appender.TEST = org.apache.log4j.DailyRollingFileAppender
log4j.appender.TEST.File = /tmp/log4j.log
log4j.appender.TEST.DatePattern = ‘.‘yyyyMMdd-HHmmss
log4j.appender.TEST.layout = org.apache.log4j.PatternLayout
log4j.appender.TEST.layout.ConversionPattern = %p %t %c - %m%n

log4j 每次运行生成文件