-
Notifications
You must be signed in to change notification settings - Fork 138
/
log4j2_json.xml
29 lines (29 loc) · 1.08 KB
/
log4j2_json.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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
</Console>
<File name="JSON" filename="membrane_json.log">
<JsonTemplateLayout eventTemplateUri="classpath:com/predic8/membrane/core/interceptor/log/logTemplate.json"/>
</File>
<RollingFile name="FILE" fileName="membrane.log" filePattern="membrane.log.%i">
<PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
<Policies>
<SizeBasedTriggeringPolicy size="100 MB" />
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>
</Appenders>
<Loggers>
<Logger name="com.predic8" level="info">
<AppenderRef ref="FILE" />
</Logger>
<Root level="info">
<AppenderRef ref="STDOUT" />
</Root>
<Logger name="com.predic8" level="INFO">
<AppenderRef ref="JSON"/>
</Logger>
</Loggers>
</Configuration>