-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlog4j.properties
26 lines (18 loc) · 1007 Bytes
/
log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %m%n
log4j.rootLogger=info,stdout,logfile,errfile
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.Append=true
log4j.appender.logfile.DatePattern='_' yyyy-MM-dd-HH
log4j.appender.logfile.File=logs/xiaomi.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%t] %c.%M(%L) - %m%n
log4j.appender.errfile.Threshold = error
log4j.appender.errfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.errfile.Append=true
log4j.appender.errfile.DatePattern='_' yyyy-MM-dd
log4j.appender.errfile.File=logs/error.log
log4j.appender.errfile.layout=org.apache.log4j.PatternLayout
log4j.appender.errfile.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%t] %c.%M(%L) - %m%n