-
-
Notifications
You must be signed in to change notification settings - Fork 467
Expand file tree
/
Copy pathlog4j2-test.xml
More file actions
35 lines (30 loc) · 901 Bytes
/
log4j2-test.xml
File metadata and controls
35 lines (30 loc) · 901 Bytes
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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<ThresholdFilter level="debug"/>
<Appenders>
<RollingFile
name="RollingFile"
fileName="target/test-app.log"
filePattern="target/test-$${date:yyyy-MM}/test-app-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
</RollingFile>
<Console name="console" target="SYSTEM_ERR">
<PatternLayout>
<Pattern>%d{yyyy-MM-dd HH:mm:ss} %-5p %c:%L - %m%n</Pattern>
</PatternLayout>
</Console>
</Appenders>
<Loggers>
<Root level="info">
<!-- <AppenderRef ref="RollingFile"/>-->
<AppenderRef ref="console"/>
</Root>
<Logger name="fqcn" level="debug"/>
</Loggers>
</Configuration>