-
Notifications
You must be signed in to change notification settings - Fork 3
/
log4j2.xml
47 lines (44 loc) · 1.49 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
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} %-5p [%X{namespace}] - %msg%n" />
</Console>
<RollingFile name="All">
<FileName>${sys:bluenimble.runtime}/logs/bluenimble.log</FileName>
<FilePattern>${sys:bluenimble.runtime}/logs/bluenimble.%d{yyyy-MM-dd-hh-mm}.log.zip
</FilePattern>
<PatternLayout>
<Pattern>%d{ISO8601} %-5p [%X{namespace}] - %msg%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="20 MB"/>
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>
<RollingFile name="Requests">
<FileName>${sys:bluenimble.runtime}/logs/requests.log</FileName>
<FilePattern>${sys:bluenimble.runtime}/logs/requests.%d{yyyy-MM-dd-hh-mm}.log.zip</FilePattern>
<PatternLayout>
<Pattern>%d{ISO8601} %-5p [%X{namespace}] [%X{request}] - %msg%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="20 MB"/>
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>
</Appenders>
<Loggers>
<Logger name="All" level="info" additivity="false">
<AppenderRef ref="STDOUT"/>
<AppenderRef ref="All"/>
</Logger>
<Logger name="Requests" level="debug" additivity="false">
<AppenderRef ref="STDOUT"/>
<AppenderRef ref="Requests"/>
</Logger>
<Root level="error">
<AppenderRef ref="All"/>
</Root>
</Loggers>
</Configuration>