验证中...
Languages: Java
Categories: Web开发技术
Latest update 2019-06-25 00:13
log4j.properties
Raw Copy
log4j.rootLogger=INFO,CONSOLE,ErrorFile,LogFile
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%p %d{HH:mm:ss SSS} -> [C]%10.20C [Line]%1L [M]%15M() *** %m%n
log4j.appender.ErrorFile=org.apache.log4j.RollingFileAppender
log4j.appender.ErrorFile.Threshold=ERROR
log4j.appender.ErrorFile.File=${user.dir}/logs/errorFile.log
log4j.appender.ErrorFile.MaxFileSize=10MB
log4j.appender.ErrorFile.MaxBackupIndex=10
log4j.appender.ErrorFile.layout=org.apache.log4j.PatternLayout
log4j.appender.ErrorFile.layout.ConversionPattern=%d{yyyy/MM/dd HH\:mm\:ss} %5p %c{1}\:%L - %m%n
log4j.appender.LogFile=org.apache.log4j.RollingFileAppender
log4j.appender.LogFile.Threshold=INFO
log4j.appender.LogFile.File=${user.dir}/logs/infoFiles.log
log4j.appender.LogFile.MaxFileSize=10MB
log4j.appender.LogFile.MaxBackupIndex=10
log4j.appender.LogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.LogFile.layout.ConversionPattern=%d{yyyy/MM/dd HH\:mm\:ss} %5p %c{1}\:%L - %m%n

Comment list( 0 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025