diff artifacts/doc/conf/log4j2.xml @ 9726:0a5239a1e46e 3.2.x

Upgrade to Log4j 2
author Tom Gottfried <tom@intevation.de>
date Wed, 02 Mar 2022 10:26:50 +0100
parents
children 7f8110eed9a3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/doc/conf/log4j2.xml	Wed Mar 02 10:26:50 2022 +0100
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration>
+    <Appenders>
+        <RollingFile
+            name="RollingFile"
+            fileName="/var/log/d4e-river/d4e-server.log"
+            filePattern="/var/log/d4e-river/d4e-server.log.%i">
+            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5p %c{1} - %m%n"/>
+            <SizeBasedTriggeringPolicy size="5000 KB"/>
+            <DefaultRolloverStrategy max="1"/>
+        </RollingFile>
+        <Console name="Console" target="SYSTEM_OUT">
+            <PatternLayout pattern="%d %m%n"/>
+        </Console>
+    </Appenders>
+    <Loggers>
+        <Root level="DEBUG">
+            <AppenderRef ref="RollingFile"/>
+        </Root>
+        <Logger name="org.hibernate" level="WARN" additivity="false"/>
+        <Logger name="net.sf.ehcache" level="WARN" additivity="false"/>
+        <Logger name="org.eclipse" level="WARN" additivity="false"/>
+        <Logger name="org.restlet" level="INFO" additivity="false"/>
+        <Logger name="org.dive4elements.artifactdatabase.rest.Standalone"
+                level="INFO">
+            <AppenderRef ref="Console"/>
+        </Logger>
+    </Loggers>
+</Configuration>

http://dive4elements.wald.intevation.org