# Output pattern: date [Thread] Log priority directory-message
log4j.rootlogger=info, Console, Rollingfile
# only for programs under Com.mypackage.deng Day Log priority DEBUG output, other packages follow global log level 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