# An example log4j configuration file that outputs to System.out. The
# output information consists of relative time, log level, thread
# name, logger name, nested diagnostic context and the message in that
# order.
# For the general syntax of property based configuration files see the
# documenation of org.apache.log4j.PropertyConfigurator.
log4j.rootLogger=WARN, A1
log4j.additivity.com.huawei.TEST=false
log4j.logger.com.huawei.TEST=INFO,A1
# A1 is set to be a ConsoleAppender which outputs to System.out.
# log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=log4j.log
log4j.appender.A1.MaxFileSize=100KB
log4j.appender.A1.MaxBackupIndex=1
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# The conversion pattern uses format specifiers. You might want to
# change the pattern an watch the output format change.
# log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS}%m%n
log4j.appender.A1.layout.ConversionPattern=[%p] - [%-d{yyyy-MM-dd HH:mm:ss}]: (%F:%L)--%m%n
posted on 2007-10-09 22:19
狗狗他爹 阅读(791)
评论(0) 编辑 收藏 所属分类:
java