-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlog4j.properties
34 lines (26 loc) · 1.13 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
29
30
31
32
33
34
# Logging Configuration
# set root logger level to ERROR and give it an appender
log4j.rootLogger = ERROR, RootAppender, stderr
# make the appender
log4j.appender.RootAppender = org.apache.log4j.ConsoleAppender
log4j.appender.stderr = org.apache.log4j.ConsoleAppender
# give it a layout
log4j.appender.RootAppender.layout = org.apache.log4j.PatternLayout
log4j.appender.RootAppender.layout.ConversionPattern = %d{HH:mm:ss} %-5p [%c{1}] %m%n
log4j.appender.stderr.layout = org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern = %d{HH:mm:ss} %-5p [%c{1}] %m%n
# set the filename
log4j.appender.RootAppender.target = System.out
log4j.appender.stderr.target = System.err
log4j.appender.RootAppender.filter.filter1=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.RootAppender.filter.filter1.levelMin=TRACE
log4j.appender.RootAppender.filter.filter1.levelMax=INFO
log4j.appender.stderr.threshold=WARN
#--------------------------------
# set the starting logger levels
#--------------------------------
log4j.logger.gov = WARN
log4j.logger.edu = INFO
log4j.logger.org = WARN
log4j.logger.org.rsna = INFO
log4j.logger.mirc = INFO