CSDN博客

img chho

配置成功的log4j的属性文件

发表于2004/10/26 16:25:00  1933人阅读

log4j.rootLogger=CONSOLE, FILE

#set log console
######################################################
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[framework]%d - %c - %-4r [%t] %-5p %c %x - %m%n

#set log file
######################################################
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.Threshold=INFO
log4j.appender.FILE.File=c:/chho.log
log4j.appender.FILE.MaxFileSize=100KB
log4j.appender.FILE.MaxBackupIndex=1
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[framework]%d - %c - %-4r [%t] %-5p %c %x - %m%n

阅读全文
0 0

相关文章推荐

img
取 消
img