[PATCH] Simplify server logging defaults
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 12 16:34:41 CEST 2022
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1657636468 -7200
# Tue Jul 12 16:34:28 2022 +0200
# Branch 3.2.x
# Node ID 7f8110eed9a3d8416f7683717d11c20e90538e87
# Parent 7e767c0c9a6dbb386d9746a3d01fa87bbf245538
Simplify server logging defaults
Just log to console which is more appropriate e.g. for use with
`docker logs'.
diff -r 7e767c0c9a6d -r 7f8110eed9a3 artifacts/doc/conf/log4j2.xml
--- a/artifacts/doc/conf/log4j2.xml Thu Jul 07 11:19:08 2022 +0200
+++ b/artifacts/doc/conf/log4j2.xml Tue Jul 12 16:34:28 2022 +0200
@@ -1,29 +1,17 @@
<?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">
+ <Console name="Console" target="SYSTEM_OUT">
<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"/>
+ <AppenderRef ref="Console"/>
</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>
More information about the Dive4Elements-commits
mailing list