All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lmos-webtest.1.0.2.source-code.log4j.properties Maven / Gradle / Ivy

There is a newer version: 1.0.2u10
Show newest version
###set output encoding###
log4j.appender.logfile.encoding=UTF-8
### set log levels ###
###log4j.rootLogger = debug , INFO , ERROR,stdout

### out print at console ###
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target = System.out
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.INFO.Threshold = INFO
log4j.appender.stdout.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{1}:%L - %m%n

### write in log ###
log4j.appender.INFO = org.apache.log4j.DailyRollingFileAppender
#必须是具体的文件而不是文件夹
log4j.appender.INFO.File = D://holmos//logs//log.log
log4j.appender.INFO.Append = true
log4j.appender.INFO.Threshold = DEBUG 
log4j.appender.INFO.layout = org.apache.log4j.PatternLayout
log4j.appender.INFO.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n

### save error log ###
log4j.appender.ERROR = org.apache.log4j.DailyRollingFileAppender
#必须是具体的文件而不是文件夹
log4j.appender.ERROR.File = D://holmos//logs//error.log  
log4j.appender.ERROR.Append = true
log4j.appender.ERROR.Threshold = ERROR 
log4j.appender.ERROR.layout = org.apache.log4j.PatternLayout
log4j.appender.ERROR.layout.ConversionPattern =%-d{yyyy-MM-dd HH\:mm\:ss} [ %t\:%r ] - [ %p ] %m%n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy