summaryrefslogtreecommitdiffstats
path: root/components/aai-resources/resources/rproxy/config/logback-spring.xml
diff options
context:
space:
mode:
authorDominik Mizyn <d.mizyn@partner.samsung.com>2020-08-26 08:39:34 +0200
committerDominik Mizyn <d.mizyn@samsung.com>2020-09-01 15:08:15 +0200
commitbefaa5500924f9ebda0b4bf65d8d6ab5a9f0745a (patch)
tree3877df9612488fef551ddada948aebb994e9d8e3 /components/aai-resources/resources/rproxy/config/logback-spring.xml
parent7e6e2bf385f85e85e008d06b2415290851fee2b7 (diff)
[AAI] Add logs to STDOUT
This commit add STDOUT appender to root level logging. Additionally, it approximates the logback.xml file to ONAP Application Logging Specification v1.2 Issue-ID: OOM-2514 Signed-off-by: Dominik Mizyn <d.mizyn@partner.samsung.com> Change-Id: Iee075bb1400fd2ab2afbc39bf87e93f269ebaf84
Diffstat (limited to 'components/aai-resources/resources/rproxy/config/logback-spring.xml')
-rw-r--r--components/aai-resources/resources/rproxy/config/logback-spring.xml16
1 files changed, 7 insertions, 9 deletions
diff --git a/components/aai-resources/resources/rproxy/config/logback-spring.xml b/components/aai-resources/resources/rproxy/config/logback-spring.xml
index 799fd86..c0c506a 100644
--- a/components/aai-resources/resources/rproxy/config/logback-spring.xml
+++ b/components/aai-resources/resources/rproxy/config/logback-spring.xml
@@ -4,12 +4,10 @@
<property name="LOGS" value="./logs/reverse-proxy" />
<property name="FILEPREFIX" value="application" />
- <appender name="Console"
+ <appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
- <Pattern>
- %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable
- </Pattern>
+ <Pattern>{{ .Values.log.consolePattern.rproxy }}</Pattern>
</layout>
</appender>
@@ -32,14 +30,14 @@
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
-
+
<!-- LOG everything at INFO level -->
- <root level="info">
+ <root level="{{.Values.logback.rootLogLevelrproxy}}">
<appender-ref ref="RollingFile" />
- <appender-ref ref="Console" />
+ <appender-ref ref="STDOUT" />
</root>
-
+
<!-- LOG "com.baeldung*" at TRACE level -->
<logger name="org.onap.aaf.rproxy" level="info" />
-
+
</configuration>