log4j.properties
上传用户:thankyoung
上传日期:2020-07-03
资源大小:1021k
文件大小:2k
- # all logging output sent to standard out and a file
- # WARN is default logging level
- # log4j.rootCategory=WARN, STDOUT, FILE
- # log4j.rootLogger=[level], appenderName1, appenderName2, ...
- # LEVEL: FATAL / ERROR / WARN / INFO / DEBUG
- # log4j.rootLogger=DEBUG, STDOUT, FILE, ERR
- #log4j.rootLogger=INFO, STDOUT, FILE, ERR
- log4j.rootLogger=INFO, STDOUT, FILE
- # Configure the Standard Out Appender
- log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
- log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
- log4j.appender.STDOUT.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1}:%L - %m%n
- # Configure a rolling file appender
- #log4j.appender.FILE=org.apache.log4j.FileAppender
- log4j.appender.FILE=org.apache.log4j.RollingFileAppender
- log4j.appender.FILE.File=logs/QueryByHumming.log
- log4j.appender.FILE.MaxFileSize=10000KB
- log4j.appender.FILE.MaxBackupIndex=5
- log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
- log4j.appender.FILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1}:%L - %m%n
- #Save exception message to a stand-alone file.
- #log4j.appender.ERR=org.apache.log4j.DailyRollingFileAppender
- #log4j.appender.ERR.File=logs/QueryByHumming_error.log
- #log4j.appender.ERR.Append=true
- #log4j.appender.ERR.Threshold=ERROR
- #log4j.appender.ERR.layout=org.apache.log4j.PatternLayout
- #log4j.appender.ERR.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c{1}:%L - %m%n
- #Set package logging level
- #log4j.logger.com.sabrian.sys.midi=ERROR
- #log4j.logger.com.sabrian.sys.midi.chunk.event.MidiControlEventParser=FATAL
- #log4j.logger.com.sabrian.sys.midi=INFO
- log4j.logger.com.sabrian.sys.base.common.exception.SysBaseException=INFO
- log4j.logger.com.sabrian.sys.midi.ext=DEBUG