-
Notifications
You must be signed in to change notification settings - Fork 55
/
log4j2.properties
38 lines (35 loc) · 1.74 KB
/
log4j2.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
35
36
37
38
status=error
dest=err
appender.console.type=Console
appender.console.name=STDOUT
appender.console.layout.type=PatternLayout
appender.console.layout.pattern=[%highlight{%p}{FATAL=red, ERROR=red, WARN=yellow bright, INFO=blue bright, DEBUG=green bright}] %m%n
appender.console.filter.threshold.type=DynamicThresholdFilter
appender.console.filter.threshold.defaultThreshold=warn
appender.console.filter.threshold.key=console-level
appender.console.filter.threshold.keyValuePair.type=KeyValuePair
appender.console.filter.threshold.keyValuePair.key=info
appender.console.filter.threshold.keyValuePair.value=info
appender.console.filter.threshold.keyValuePair2.type=KeyValuePair
appender.console.filter.threshold.keyValuePair2.key=debug
appender.console.filter.threshold.keyValuePair2.value=debug
appender.console.filter.threshold.onMatch=ACCEPT
appender.console.filter.threshold.onMismatch=DENY
appender.rolling.type=RollingFile
appender.rolling.name=FILE
appender.rolling.fileName=logs/datadefender.log
appender.rolling.filePattern=logs/datadefender-%d{yy-MM-dd-hh-mm-ss}.log
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{HH:mm:ss} %c{2.} [%p] - %m%n
appender.rolling.policies.type=OnStartupTriggeringPolicy
appender.rolling.filter.threshold.type=DynamicThresholdFilter
appender.rolling.filter.threshold.defaultThreshold=info
appender.rolling.filter.threshold.key=file-level
appender.rolling.filter.threshold.keyValuePair.type=KeyValuePair
appender.rolling.filter.threshold.keyValuePair.key=debug
appender.rolling.filter.threshold.keyValuePair.value=debug
appender.rolling.filter.threshold.onMatch=ACCEPT
appender.rolling.filter.threshold.onMismatch=DENY
rootLogger.level=all
rootLogger.appenderRef.file.ref=FILE
rootLogger.appenderRef.console.ref=STDOUT