summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2021-05-11 12:27:42 +0100
committera.sreekumar <ajith.sreekumar@bell.ca>2021-05-11 12:27:51 +0100
commit16c832a9e7e814f552cceb2d1fa46de00e3df52f (patch)
tree4964c2f9209af816092dbf19ab1d00aba51eacf4 /packages/apex-pdp-package-full/src
parentcac8dad2a5e52760d9fafc5d0e90c68ed700de37 (diff)
Update the default logback.xml in APEX to log to STDOUT
Update the default logback.xml to log to STDOUT, so that while running in standalone mode, logs can be seen easily. Change-Id: Ie0ccdbe11672c33723c920767ce14d1b26fa9762 Issue-ID: POLICY-3303 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'packages/apex-pdp-package-full/src')
-rw-r--r--packages/apex-pdp-package-full/src/main/resources/logback.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/apex-pdp-package-full/src/main/resources/logback.xml b/packages/apex-pdp-package-full/src/main/resources/logback.xml
index 2b41c9405..3124a5e62 100644
--- a/packages/apex-pdp-package-full/src/main/resources/logback.xml
+++ b/packages/apex-pdp-package-full/src/main/resources/logback.xml
@@ -3,6 +3,7 @@
============LICENSE_START=======================================================
Copyright (C) 2016-2018 Ericsson. All rights reserved.
Modifications Copyright (C) 2019 Nordix Foundation.
+ Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -90,17 +91,30 @@
<appender-ref ref="NetworkOut" />
</appender>
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <Pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</Pattern>
+ </encoder>
+ </appender>
+
+ <appender name="AsyncStdOut" class="ch.qos.logback.classic.AsyncAppender">
+ <appender-ref ref="STDOUT" />
+ </appender>
+
<logger name="network" level="INFO" additivity="false">
<appender-ref ref="AsyncNetworkOut" />
+ <appender-ref ref="AsyncStdOut" />
</logger>
<logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false">
<appender-ref ref="AsyncNetworkOut" />
+ <appender-ref ref="AsyncStdOut" />
</logger>
<root level="INFO">
<appender-ref ref="AsyncDebugOut" />
<appender-ref ref="AsyncErrorOut" />
+ <appender-ref ref="AsyncStdOut" />
</root>
</configuration>