From befaa5500924f9ebda0b4bf65d8d6ab5a9f0745a Mon Sep 17 00:00:00 2001 From: Dominik Mizyn Date: Wed, 26 Aug 2020 08:39:34 +0200 Subject: [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 Change-Id: Iee075bb1400fd2ab2afbc39bf87e93f269ebaf84 --- components/aai-babel/requirements.yaml | 3 +- components/aai-babel/resources/config/logback.xml | 85 +++++++++++++--------- .../resources/fproxy/config/logback-spring.xml | 12 ++- .../resources/rproxy/config/logback-spring.xml | 12 ++- components/aai-babel/values.yaml | 26 +++++++ 5 files changed, 90 insertions(+), 48 deletions(-) (limited to 'components/aai-babel') diff --git a/components/aai-babel/requirements.yaml b/components/aai-babel/requirements.yaml index 8297688..5fcafdb 100644 --- a/components/aai-babel/requirements.yaml +++ b/components/aai-babel/requirements.yaml @@ -1,5 +1,6 @@ # Copyright © 2018 Amdocs, AT&T # Modifications Copyright © 2018 Bell Canada +# Modifications Copyright © 2020 Samsung Electronics # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,4 +20,4 @@ dependencies: # local reference to common chart, as it is # a part of this chart's package and will not # be published independently to a repo (at this point) - repository: '@local' + repository: '@local' \ No newline at end of file diff --git a/components/aai-babel/resources/config/logback.xml b/components/aai-babel/resources/config/logback.xml index 878d8c0..b8e8ad0 100644 --- a/components/aai-babel/resources/config/logback.xml +++ b/components/aai-babel/resources/config/logback.xml @@ -1,6 +1,7 @@ @@ -27,6 +28,13 @@ + + + + + + + @@ -36,6 +44,9 @@ + + + @@ -131,64 +142,72 @@ false - - - - - - - - - + + + ${consolePattern} + + - - + + - - + + - - + + - - + + - + - - - + + + - - + + - - - - - - - + + + + + + + + - - + + + + + + + + + + + + + diff --git a/components/aai-babel/resources/fproxy/config/logback-spring.xml b/components/aai-babel/resources/fproxy/config/logback-spring.xml index 0637cfb..aa37596 100644 --- a/components/aai-babel/resources/fproxy/config/logback-spring.xml +++ b/components/aai-babel/resources/fproxy/config/logback-spring.xml @@ -4,12 +4,10 @@ - - - %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable - + {{ .Values.log.consolePattern.babel.froxy }} @@ -34,12 +32,12 @@ - + - + - + \ No newline at end of file diff --git a/components/aai-babel/resources/rproxy/config/logback-spring.xml b/components/aai-babel/resources/rproxy/config/logback-spring.xml index 2cd95d4..368367d 100644 --- a/components/aai-babel/resources/rproxy/config/logback-spring.xml +++ b/components/aai-babel/resources/rproxy/config/logback-spring.xml @@ -4,12 +4,10 @@ - - - %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable - + {{ .Values.log.consolePattern.babel.rproxy }} @@ -34,12 +32,12 @@ - + - + - + diff --git a/components/aai-babel/values.yaml b/components/aai-babel/values.yaml index 6f2c033..d2eeb6c 100644 --- a/components/aai-babel/values.yaml +++ b/components/aai-babel/values.yaml @@ -68,6 +68,32 @@ ingress: config: ssl: "redirect" +log: + logDir: {{ .Values.log.logDir }} + root: + level: {{ .Values.log.root.level.babel }} + consolePattern: + babel: + config: {{ .Values.log.consolePattern.babel.config }} + froxy: {{ .Values.log.consolePattern.babel.froxy }} + rproxy: {{ .Values.log.consolePattern.babel.rproxy }} + logger: + apache: {{ .Values.log.logger.apache }} + apacheCamel: {{ .Values.log.logger.apacheCamel }} + apacheCamelComponentRestlet: {{ .Values.log.logger.apacheCamelComponentRestlet }} + apacheCamelProcessorInterceptor: {{ .Values.log.logger.apacheCamelProcessorInterceptor }} + apacheCommons: {{ .Values.log.logger.apacheCommons }} + apacheCxf: {{ .Values.log.logger.apacheCxf }} + apacheCxfJaxrsInterceptor: {{ .Values.log.logger.apacheCxfJaxrsInterceptor }} + apacheCxfService: {{ .Values.log.logger.apacheCxfService }} + att: {{ .Values.log.logger.att }} + qosLogbackClassic: {{ .Values.log.logger.qosLogbackClassic }} + qosLogbackCore: {{ .Values.log.logger.qosLogbackCore }} + restlet: {{ .Values.log.logger.restlet }} + springframework: {{ .Values.log.logger.springframework }} + springframeworkBeans: {{ .Values.log.logger.springframeworkBeans }} + springframeworkWeb: {{ .Values.log.logger.springframeworkWeb }} + resources: small: limits: -- cgit 1.2.3-korg