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 --- .../aai-traversal/resources/config/logback.xml | 35 +++++++++++----------- components/aai-traversal/values.yaml | 20 +++++++++++++ 2 files changed, 38 insertions(+), 17 deletions(-) (limited to 'components/aai-traversal') diff --git a/components/aai-traversal/resources/config/logback.xml b/components/aai-traversal/resources/config/logback.xml index d466ccf..935dce9 100644 --- a/components/aai-traversal/resources/config/logback.xml +++ b/components/aai-traversal/resources/config/logback.xml @@ -33,13 +33,13 @@ + - - %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} - + {{ .Values.log.consolePattern }} + ${logDirectory}/rest/sane.log @@ -213,6 +213,7 @@ ${eelfLogPattern} + @@ -222,15 +223,15 @@ - - - - - + + + + + - - - + + + @@ -247,19 +248,19 @@ - - - - + + + + - + - + {{if .Values.global.config.logback.console.enabled}} diff --git a/components/aai-traversal/values.yaml b/components/aai-traversal/values.yaml index 04185ee..df2796c 100644 --- a/components/aai-traversal/values.yaml +++ b/components/aai-traversal/values.yaml @@ -97,6 +97,26 @@ service: ingress: enabled: false +log: + logDir: {{ .Values.log.logDir }} + root: + level: {{ .Values.log.root.level.traversal }} + consolePattern: {{ .Values.log.consolePattern.traversal }} + logger: + apache: {{ .Values.log.logger.apache }} + attAftDme2: {{ .Values.log.logger.attAftDme2 }} + attEelf: {{ .Values.log.logger.attEelf }} + blogSpringJms: {{ .Values.log.logger.blogSpringJms }} + eclipseJetty: {{ .Values.log.logger.eclipseJetty }} + jaywayJsonpath: {{ .Values.log.logger.jaywayJsonpath }} + qosLogbackClassic: {{ .Values.log.logger.qosLogbackClassic }} + qosLogbackCore: {{ .Values.log.logger.qosLogbackCore }} + springframework: {{ .Values.log.logger.springframework }} + springframeworkBeans: {{ .Values.log.logger.springframeworkBeans }} + springframeworkWeb: {{ .Values.log.logger.springframeworkWeb }} + thinkaurelius: {{ .Values.log.logger.thinkaurelius }} + zookeeper: {{ .Values.log.logger.zookeeper }} + # Configure resource requests and limits # ref: http://kubernetes.io/docs/user-guide/compute-resources/ resources: -- cgit 1.2.3-korg