-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.properties
32 lines (26 loc) · 1.28 KB
/
example.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
29
30
31
32
log4j.rootLogger=debug, stdout, R, F, D, S
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%r %d %5p [%t] (%F:%L) - %m%n
log4j.appender.F=org.apache.log4j.FileAppender
log4j.appender.F.File=example.log
log4j.appender.F.layout=org.apache.log4j.PatternLayout
log4j.appender.F.layout.ConversionPattern=%d{HH:mm:ss} %p %t %c - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=rolling.log
log4j.appender.R.MaxFileSize=1KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %p %t %c - %m%n
log4j.appender.D=org.apache.log4j.DailyRollingFileAppender
log4j.appender.D.File=daily.log
log4j.appender.D.DatePattern=.yyyy-MM-dd-HH-mm
log4j.appender.D.layout=org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern=%d %p %t %c - %m%n
log4j.appender.S=org.apache.log4j.SyslogAppender
log4j.appender.S.Facility=USER
log4j.appender.S.FacilityPrinting=false
log4j.appender.S.SyslogHost=localhost
log4j.appender.D.layout=org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern=%d %p %t %c - %m%n