#debug->info->warn->error->fatal
#log4j.rootLogger=DEBUG,A1
log4j.rootLogger=info,info,error
#log4j.rootLogger=error,msg2
######################
#Rolling File
######################
#????
=info
#org.apache.log4j.DailyRollingFileAppender
#org.apache.log4j.RollingFileAppender
=org.apache.log4j.RollingFileAppender
#文件存放路径
.File=${catalina.home}/webapps/YunSpringmvc/WEB-INF/logs/logInfo.log
.layout=org.apache.log4j.PatternLayout
.Append=true
#Threshold=DEBUG:??????????????
.Threshold =INFO
#[%c]-[%p] %l %d{yyyy-MM-dd HH\:mm\:ss,SSS}
.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p] (%c\:%L) - %m%n
#MaxFileSize=100KB: ?????KB, MB ??? GB. ????????????????????????????mylog.log.1???
log4j.appender.MaxFileSize=2MB
#MaxBackupIndex=2:????????????????
log4j.appender.MaxBackupIndex=1
#????
log4j.logger.error=error
#org.apache.log4j.DailyRollingFileAppender?????????????
#org.apache.log4j.RollingFileAppender???????????????????????
log4j.appender.error=org.apache.log4j.RollingFileAppender
#??????
log4j.appender.error.File=${catalina.home}/webapps/YunSpringmvc/WEB-INF/logs/logError.log
#??????org.apache.log4j.PatternLayout?????????????
log4j.appender.error.layout=org.apache.log4j.PatternLayout
#Append=false:????true,?????????????false??????????????
log4j.appender.error.Append=true
#Threshold=DEBUG:??????????????
log4j.appender.error.Threshold =ERROR
log4j.appender.error.layout.ConversionPattern=[%d{yyyy-MM-dd HH\:mm\:ss\:SSS}][%p] (%c\:%L) - %m%n