changeset 9746:1a1e627b1483 3.2.x

Let client log to stdout
author Tom Gottfried <tom@intevation.de>
date Tue, 30 Aug 2022 15:02:10 +0200
parents 1632f64aba89
children cfc0aab9947f
files docker/README gwt-client/src/main/resources/log4j2.xml
diffstat 2 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/docker/README	Tue Aug 30 14:58:38 2022 +0200
+++ b/docker/README	Tue Aug 30 15:02:10 2022 +0200
@@ -21,6 +21,5 @@
 
 TODO:
 _ Avoid having to change configuration manually
-_ Let all components log to stdout to enable useful usage of `docker logs'
 _ Something better than setting framework and http-client to a branch
   explicitly in the Dockerfiles
--- a/gwt-client/src/main/resources/log4j2.xml	Tue Aug 30 14:58:38 2022 +0200
+++ b/gwt-client/src/main/resources/log4j2.xml	Tue Aug 30 15:02:10 2022 +0200
@@ -1,18 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Configuration>
     <Appenders>
-        <RollingFile
-            name="RollingFile"
-            fileName="/var/log/d4e-river/d4e-client.log"
-            filePattern="/var/log/d4e-river/d4e-client.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="3"/>
-        </RollingFile>
+        </Console>
     </Appenders>
     <Loggers>
         <Root level="DEBUG">
-            <AppenderRef ref="RollingFile"/>
+            <AppenderRef ref="Console"/>
         </Root>
         <Logger name="org.apache.http" level="ERROR" additivity="false"/>
     </Loggers>

http://dive4elements.wald.intevation.org