diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2022-03-03 15:09:54 +0000 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2022-03-03 15:24:34 +0000 |
commit | 9d0262410b833d25b14a3c8afde75be98aa15c3f (patch) | |
tree | 8a1630ed6110f026c29ebaa84132c8ada3f59107 /packages/policy-gui-docker/src | |
parent | db62dd949137d911a7cf928cc92fcaeaf655dbd8 (diff) |
Enable console logging in policy-gui
Enable logging to STDOUT so that logs can be viewed with `kubectl logs`
Issue-ID: POLICY-3638
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I8325223d77089801df92683ea51cf07b3c2dd44c
Diffstat (limited to 'packages/policy-gui-docker/src')
-rw-r--r-- | packages/policy-gui-docker/src/main/docker/config/logback.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/policy-gui-docker/src/main/docker/config/logback.xml b/packages/policy-gui-docker/src/main/docker/config/logback.xml index 019ae50..511bcb5 100644 --- a/packages/policy-gui-docker/src/main/docker/config/logback.xml +++ b/packages/policy-gui-docker/src/main/docker/config/logback.xml @@ -31,6 +31,16 @@ <property name="errorPattern" value="${debugPattern}" /> <property name="networkPattern" value="[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n" /> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> + <level>INFO</level> + </filter> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n + </pattern> + </encoder> + </appender> + <appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${logDir}/${errorLog}.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> @@ -115,5 +125,6 @@ <appender-ref ref="asyncDebug" /> <appender-ref ref="asyncError" /> <appender-ref ref="asyncNetwork" /> + <appender-ref ref="STDOUT" /> </root> </configuration> |