-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-log4j2.xml
32 lines (32 loc) · 1.32 KB
/
docker-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
<?xml version="1.0" encoding="UTF-8"?>
<configuration status="off">
<appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} %-5p %X{loginId} %c{1}: %m%n%ex" />
</Console>
<RollingFile name="RollingFile" fileName="/mcr/logs/mycore-app.log"
filePattern="/mcr/logs/$${date:yyyy-MM}/mycore-app-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>%highlight{%d{ISO8601} %-5p %X{loginId} %c{1}: %m%n%ex}</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
</RollingFile>
</appenders>
<loggers>
<root level="info">
<appender-ref ref="Console" />
<appender-ref ref="RollingFile" />
</root>
<logger name="org.hibernate" level="error" />
<logger name="org.mycore.frontend.editor.validation" level="info" />
<logger name="org.mycore.common.xml.MCRURIResolver" >
<filters>
<MarkerFilter marker="tryResolveXML" onMatch="NEUTRAL" onMismatch="ACCEPT"/>
<MCRUniqueFilter onMatch="DENY" onMismatch="ACCEPT"/>
</filters>
</logger>
</loggers>
</configuration>