-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4j2.xml
34 lines (33 loc) · 1 KB
/
log4j2.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
27
28
29
30
31
32
33
34
<!-- Prepared for git-->
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
<Properties>
<Property name="basePath">/eMQTT/eMQTT-Authz/logs/</Property>
</Properties>
<Appenders>
<RollingFile name="fileLogger"
fileName="${basePath}/eMQTT-Authz.log"
filePattern="${basePath}/eMQTT-Authz-%d{yyyy-MM-dd}.log">
<PatternLayout>
<pattern>[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1" modulate="true" />
<SizeBasedTriggeringPolicy size="10MB" />
</Policies>
<!-- Max 10 files will be created everyday -->
<DefaultRolloverStrategy max="10">
<Delete basePath="${basePathr}" maxDepth="10">
<!-- Delete all files older than 30 days -->
<IfLastModified age="30d" />
</Delete>
</DefaultRolloverStrategy>
</RollingFile>
</Appenders>
<Loggers>
<Root level="ALL" additivity="false">
<appender-ref ref="fileLogger" />
</Root>
</Loggers>
</Configuration>