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-schema-service/config/logback.xml | 71 ++++++++++++------------ components/aai-schema-service/values.yaml | 38 +++++++++++++ 2 files changed, 73 insertions(+), 36 deletions(-) (limited to 'components/aai-schema-service') diff --git a/components/aai-schema-service/config/logback.xml b/components/aai-schema-service/config/logback.xml index 9cfffe9..320be85 100644 --- a/components/aai-schema-service/config/logback.xml +++ b/components/aai-schema-service/config/logback.xml @@ -58,11 +58,10 @@ + - - %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.schemaService }} @@ -224,45 +223,45 @@ - - - - - + + + + + - - + + - + - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + - - + + - + @@ -282,13 +281,13 @@ - - - - - + + + + - + + diff --git a/components/aai-schema-service/values.yaml b/components/aai-schema-service/values.yaml index 84f36b2..fdb64bc 100644 --- a/components/aai-schema-service/values.yaml +++ b/components/aai-schema-service/values.yaml @@ -53,6 +53,44 @@ service: ingress: enabled: false +log: + logDir: {{ .Values.log.logDir }} + root: + level: {{ .Values.log.root.level.schemaService }} + consolePattern: {{ .Values.log.consolePattern.schemaService }} + 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 }} + apacheCommonsHttpclient: {{ .Values.log.logger.apacheCommonsHttpclient }} + apacheCoyote: {{ .Values.log.logger.apacheCoyote }} + apacheCxf: {{ .Values.log.logger.apacheCxf }} + apacheCxfJaxrsInterceptor: {{ .Values.log.logger.apacheCxfJaxrsInterceptor }} + apacheCxfService: {{ .Values.log.logger.apacheCxfService }} + apacheJasper: {{ .Values.log.logger.apacheJasper }} + apacheZookeeper: {{ .Values.log.logger.apacheZookeeper }} + attAftDme2: {{ .Values.log.logger.attAftDme2 }} + blogSpringJms: {{ .Values.log.logger.blogSpringJms }} + codehausGroovy: {{ .Values.log.logger.codehausGroovy }} + eclipseJetty: {{ .Values.log.logger.eclipseJetty }} + hibernate: {{ .Values.log.logger.hibernate }} + hibernateEjb: {{ .Values.log.logger.hibernateEjb }} + hibernateValidator: {{ .Values.log.logger.hibernateValidator }} + janusgraph: {{ .Values.log.logger.janusgraph }} + jaywayJsonpath: {{ .Values.log.logger.jaywayJsonpath }} + netflixLoadbalancer: {{ .Values.log.logger.netflixLoadbalancer }} + qosLogbackClassic: {{ .Values.log.logger.qosLogbackClassic }} + qosLogbackCore: {{ .Values.log.logger.qosLogbackCore }} + restlet: {{ .Values.log.logger.restlet }} + sf: {{ .Values.log.logger.sf }} + springframework: {{ .Values.log.logger.springframework }} + springframeworkBeans: {{ .Values.log.logger.springframeworkBeans }} + springframeworkWeb: {{ .Values.log.logger.springframeworkWeb }} + zookeeper: {{ .Values.log.logger.zookeeper }} + + # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following -- cgit 1.2.3-korg