-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog4j2.xml
More file actions
executable file
·37 lines (32 loc) · 1.03 KB
/
Copy pathlog4j2.xml
File metadata and controls
executable file
·37 lines (32 loc) · 1.03 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" name="XMLConfig">
<!-- https://logging.apache.org/log4j/2.x/manual/configuration.html -->
<Properties>
<Property name="filename">target/logs/data</Property>
</Properties>
<Appenders>
<Console name="STDOUT">
<PatternLayout pattern="%msg%n"/>
<ThresholdFilter level="debug"/>
</Console>
<File name="File" fileName="${filename}.log">
<PatternLayout>
<Pattern>%m%n</Pattern>
</PatternLayout>
</File>
<RollingFile name="RollingFile" fileName="${filename}-r.log" filePattern="${filename}-r-%d{yyyy-MM-dd-HH}.%i.log">
<PatternLayout>
<Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="6" modulate="true"/>
<SizeBasedTriggeringPolicy size="128 MB" />
</Policies>
</RollingFile>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
</Configuration>