-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlog4j.properties
28 lines (25 loc) · 1.17 KB
/
log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
log4j.rootLogger = INFO, stdout, D, E
# stdout
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold = INFO
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} [%-5p] %m%n
#log4j.appender.stdout.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %-5p [%t] (%F:%L) %c - %m%n
# INFO log file output
log4j.appender.D = org.apache.log4j.RollingFileAppender
log4j.appender.D.File = info.log
log4j.appender.D.MaxFileSize = 100MB
log4j.appender.D.MaxBackupIndex = 5
log4j.appender.D.encoding = UTF-8
log4j.appender.D.Threshold = INFO
log4j.appender.D.layout = org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %-5p [%t] %c - %m%n
# Error log file output
log4j.appender.E = org.apache.log4j.RollingFileAppender
log4j.appender.E.File = error.log
log4j.appender.E.MaxFileSize = 100MB
log4j.appender.E.MaxBackupIndex = 5
log4j.appender.E.encoding = UTF-8
log4j.appender.E.Threshold = ERROR
log4j.appender.E.layout = org.apache.log4j.PatternLayout
log4j.appender.E.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %-5p [%t] %c - %m%n