forked from e-gov/eIDAS-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j2.xml
36 lines (33 loc) · 1.93 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
<?xml version="1.0" encoding="UTF-8" ?>
<Configuration monitorInterval="30">
<Properties>
<Property name="eidas.client.log.pattern">{"date":"%d{yyyy-MM-dd'T'HH:mm:ss,SSSZ}", "level":"%level"%notEmpty{, "request":"%X{request}"}%notEmpty{, "requestId":"%X{requestId}"}%notEmpty{, "sessionId":"%X{sessionId}"}, "logger":"%logger", "thread":"%thread", "message":"%enc{%msg}{JSON}"%notEmpty{, "throwable":"%enc{%throwable}{JSON}"}}%n</Property>
<Property name="eidas.client.log.level">info</Property>
<Property name="eidas.client.log.dir">/var/log/eidas</Property>
</Properties>
<Appenders>
<Console name="default" target="SYSTEM_OUT">
<PatternLayout charset="UTF-8" pattern="${sys:eidas.client.log.pattern}" alwaysWriteExceptions="false"/>
</Console>
<RollingFile name="file" append="true"
filePattern="${sys:eidas.client.log.dir}/eIDAS-Client-%d{yyyy-MM-dd}.log">
<PatternLayout alwaysWriteExceptions="false" pattern="${sys:eidas.client.log.pattern}" />
<CronTriggeringPolicy schedule="0 0 * * * ?"/>
<DirectWriteRolloverStrategy>
<Delete basePath="${sys:eidas.client.log.dir}">
<IfFileName glob="eIDAS-Client-*.log" />
<IfLastModified age="7d" />
</Delete>
</DirectWriteRolloverStrategy>
</RollingFile>
</Appenders>
<Loggers>
<Logger name="ee.ria.eidas.client" level="${sys:eidas.client.log.level}" additivity="false">
<AppenderRef ref="file"/>
</Logger>
<Root level="${sys:eidas.client.log.level}">
<AppenderRef ref="default" />
<AppenderRef ref="file" />
</Root>
</Loggers>
</Configuration>