log4j.properties 模板
log4j.rootLogger=INFO,Console , C , D , E
log4j.logger.org.apache.commons.beanutils=info
log4j.logger.org.quartz.core.QuartzSchedulerThread=info
log4j.logger.org.apache.shiro.web=debug
log4j.logger.net.sf.ehcache.statistics=info
### console ###
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.C.Target = System.out
log4j.appender.Console.layout.ConversionPattern=%d %l %-5p - %m%n
### log file ###
#log4j.appender.D = org.apache.log4j.DailyRollingFileAppender
#log4j.appender.D.File = ../logs/sphisample-0.0.1-SNAPSHOT_log4j.log
#log4j.appender.D.Append = true
#log4j.appender.D.Threshold = INFO
#log4j.appender.D.layout = org.apache.log4j.PatternLayout
#log4j.appender.D.layout.ConversionPattern = [log4j][%p] [%-d{yyyy-MM-dd HH:mm:ss}] %C.%M(%L) | %m%n
### exception ###
#log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
#log4j.appender.E.File = ../logs/sphisample-0.0.1-SNAPSHOT_log4j_error.log
#log4j.appender.E.Append = true
#log4j.appender.E.Threshold = ERROR
#log4j.appender.E.layout = org.apache.log4j.PatternLayout
#log4j.appender.E.layout.ConversionPattern = [log4j][%p] [%-d{yyyy-MM-dd HH:mm:ss}] %C.%M(%L) | %m%n
时间: 2024-09-30 03:34:09