# Output pattern : 日期 [线程] 日志优先级 目录 - 消息
log4j.rootLogger=INFO, Console, RollingFile
# 只对com.mypackage.deng下的程序进行日志优先级DEBUG输出,其它包遵循全局日志级别INFO
log4j.logger.com.mypackage.deng=DEBUG
#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} [%t] %-5p [%c] - %m%n
#RollingFile
log4j.appender.RollingFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RollingFile.File=../logs/phexam-stderr.log
log4j.appender.RollingFile.Threshold = ERROR
log4j.appender.RollingFile.DatePattern = yyyy-MM-dd'.log'
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%-d{yyyy-MM-dd HH\:mm\:ss} [%t] %-5p [%c] - %m%n