comparison artifacts/doc/conf/log4j2.xml @ 9730:7f8110eed9a3 3.2.x

Simplify server logging defaults Just log to console which is more appropriate e.g. for use with `docker logs'.
author Tom Gottfried <tom@intevation.de>
date Tue, 12 Jul 2022 16:34:28 +0200
parents 0a5239a1e46e
children 432934cda171
comparison
equal deleted inserted replaced
9729:7e767c0c9a6d 9730:7f8110eed9a3
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <Configuration> 2 <Configuration>
3 <Appenders> 3 <Appenders>
4 <RollingFile 4 <Console name="Console" target="SYSTEM_OUT">
5 name="RollingFile"
6 fileName="/var/log/d4e-river/d4e-server.log"
7 filePattern="/var/log/d4e-river/d4e-server.log.%i">
8 <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5p %c{1} - %m%n"/> 5 <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5p %c{1} - %m%n"/>
9 <SizeBasedTriggeringPolicy size="5000 KB"/>
10 <DefaultRolloverStrategy max="1"/>
11 </RollingFile>
12 <Console name="Console" target="SYSTEM_OUT">
13 <PatternLayout pattern="%d %m%n"/>
14 </Console> 6 </Console>
15 </Appenders> 7 </Appenders>
16 <Loggers> 8 <Loggers>
17 <Root level="DEBUG"> 9 <Root level="DEBUG">
18 <AppenderRef ref="RollingFile"/> 10 <AppenderRef ref="Console"/>
19 </Root> 11 </Root>
20 <Logger name="org.hibernate" level="WARN" additivity="false"/> 12 <Logger name="org.hibernate" level="WARN" additivity="false"/>
21 <Logger name="net.sf.ehcache" level="WARN" additivity="false"/> 13 <Logger name="net.sf.ehcache" level="WARN" additivity="false"/>
22 <Logger name="org.eclipse" level="WARN" additivity="false"/> 14 <Logger name="org.eclipse" level="WARN" additivity="false"/>
23 <Logger name="org.restlet" level="INFO" additivity="false"/> 15 <Logger name="org.restlet" level="INFO" additivity="false"/>
24 <Logger name="org.dive4elements.artifactdatabase.rest.Standalone"
25 level="INFO">
26 <AppenderRef ref="Console"/>
27 </Logger>
28 </Loggers> 16 </Loggers>
29 </Configuration> 17 </Configuration>

http://dive4elements.wald.intevation.org