log4j

log4j.rootLogger=debug,default,stdout
log4j.category.org.apache.log4j.net=debug

log4j.appender.default=org.apache.log4j.RollingFileAppender
log4j.appender.default.file=F:/webProject5-10Log/runlog.log
log4j.appender.default.MaxFileSize=5120KB
log4j.appender.default.MaxBackupIndex=50
log4j.appender.default.layout=org.apache.log4j.PatternLayout
log4j.appender.default.layout.ConversionPattern=[%t]%d{yyyy-MM-dd HH:mm:ss,SSS}[%-5p]  | %m | %l%n


# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.conversionPattern=[%p,%c{1}] %m%n

你可能感兴趣的:(log4j)