-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.xml
26 lines (26 loc) · 1015 Bytes
/
log4j.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<Console name="ConsoleOut" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
</Console>
<RollingFile name="RollingFile" fileName="logs/app.log"
filePattern="logs/app-%i.log.gz">
<PatternLayout>
<pattern>%d %p %c{1.} [%t] %m%n</pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="24 MB"/>
</Policies>
<ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/>
<DefaultRolloverStrategy max="500"/>
</RollingFile>
</Appenders>
<Loggers>
<Root level="all">
<AppenderRef ref="ConsoleOut"/>
<AppenderRef ref="RollingFile"/>
</Root>
</Loggers>
</Configuration>