## 日志级别:FATAL、ERROR、WARN、INFO、DEBUG
log4j.rootLogger=DEBUG,CONSOLE,INFO,ERROR
#log4j.rootLogger=DEBUG,CONSOLE,FILE,INFO,WARN,ERROR,FATAL
## 控制台输出
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.Threshold = INFO
log4j.appender.CONSOLE.layout.ConversionPattern=%d{MM-ddHH\:mm\:ss}[%c-%L][%t][%-4r] - %m%n
## 只输出INFO级别以上的日志,INFO、WARN、ERROR、FATAL
log4j.appender.INFO = org.apache.log4j.DailyRollingFileAppender
## 异常日志文件名
log4j.appender.INFO.File = ${catalina.home}/logs/BillSystem/info.log
log4j.appender.INFO.Append = true
log4j.appender.INFO.layout = org.apache.log4j.PatternLayout
log4j.appender.INFO.Threshold = INFO
log4j.appender.INFO.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] [%l] %m%n
## 只输出ERROR级别以上的日志,ERROR、FATAL
log4j.appender.ERROR = org.apache.log4j.DailyRollingFileAppender
## 异常日志文件名
log4j.appender.ERROR.File = ${catalina.home}/logs/BillSystem/error.log
log4j.appender.ERROR.Append = true
log4j.appender.ERROR.layout = org.apache.log4j.PatternLayout
log4j.appender.ERROR.Threshold = ERROR
log4j.appender.ERROR.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] [%l] %m%n