-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog-config,xml
34 lines (34 loc) · 1.26 KB
/
log-config,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
<?xml version="1.0" encoding="UTF-8" ?>
<Configuration status="INFO" monitorInterval="5">
<Properties>
<Property name="root.log.level">INFO</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout
alwaysWriteExceptions="false"
pattern='{"timestamp":"%d{ISO8601}","container":"${hostName}","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%throwable{full}"}%n'
/>
</Console>
<File
name="File"
fileName="/var/log/as2ng-${env:HOSTNAME}.log"
filePattern="/var/log/as2ng-${env:HOSTNAME}.log"
>
<PatternLayout
alwaysWriteExceptions="false"
pattern='{"timestamp":"%d{ISO8601}","container":"${hostName}","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n'
/>
<Policies>
<SizeBasedTriggeringPolicy size="1 MB" />
</Policies>
<DefaultRolloverStrategy max="4" />
</File>
</Appenders>
<Loggers>
<Root level="${sys:root.log.level}">
<AppenderRef ref="Console" />
<AppenderRef ref="File" />
</Root>
</Loggers>
</Configuration>