aboutsummaryrefslogtreecommitdiffstats
path: root/components/aai-traversal
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-09-02 06:24:19 +0000
committerKrzysztof Opasiak <k.opasiak@samsung.com>2020-09-02 06:24:19 +0000
commit39e8581bee5a7674fea6773dd06de87c1ff32784 (patch)
treee547609ce61be841e8129251b0411004fcb278bf /components/aai-traversal
parentbefaa5500924f9ebda0b4bf65d8d6ab5a9f0745a (diff)
Revert "[AAI] Add logs to STDOUT"
This reverts commit befaa5500924f9ebda0b4bf65d8d6ab5a9f0745a. Reason for revert: Breaks the AAI HC Change-Id: Ie401f7bdc7408ce1171bc055a3e46cb610bd52c0
Diffstat (limited to 'components/aai-traversal')
-rw-r--r--components/aai-traversal/resources/config/logback.xml35
-rw-r--r--components/aai-traversal/values.yaml20
2 files changed, 17 insertions, 38 deletions
diff --git a/components/aai-traversal/resources/config/logback.xml b/components/aai-traversal/resources/config/logback.xml
index 935dce9..d466ccf 100644
--- a/components/aai-traversal/resources/config/logback.xml
+++ b/components/aai-traversal/resources/config/logback.xml
@@ -33,13 +33,13 @@
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
-
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
- <pattern>{{ .Values.log.consolePattern }}</pattern>
+ <pattern>
+ %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}
+ </pattern>
</encoder>
</appender>
-
<appender name="SANE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logDirectory}/rest/sane.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
@@ -213,7 +213,6 @@
<pattern>${eelfLogPattern}</pattern>
</encoder>
</appender>
-
<logger name="org.onap.aai" level="DEBUG" additivity="false">
<appender-ref ref="asyncDEBUG" />
<appender-ref ref="asyncERROR" />
@@ -223,15 +222,15 @@
</logger>
<!-- Spring related loggers -->
- <logger name="org.springframework" level="{{.Values.log.logger.springframework}}" />
- <logger name="org.springframework.beans" level="{{.Values.log.logger.springframeworkBeans}}" />
- <logger name="org.springframework.web" level="{{.Values.log.logger.springframeworkWeb}}" />
- <logger name="com.blog.spring.jms" level="{{.Values.log.logger.blogSpringJms}}" />
- <logger name="com.jayway.jsonpath" level="{{.Values.log.logger.jaywayJsonpath}}" />
+ <logger name="org.springframework" level="WARN" />
+ <logger name="org.springframework.beans" level="WARN" />
+ <logger name="org.springframework.web" level="WARN" />
+ <logger name="com.blog.spring.jms" level="WARN" />
+ <logger name="com.jayway.jsonpath" level="WARN" />
- <logger name="ch.qos.logback.classic" level="{{.Values.log.logger.qosLogbackClassic}}" />
- <logger name="ch.qos.logback.core" level="{{.Values.log.logger.qosLogbackCore}}" />
- <logger name="org.eclipse.jetty" level="{{.Values.log.logger.eclipseJetty}}" />
+ <logger name="ch.qos.logback.classic" level="WARN" />
+ <logger name="ch.qos.logback.core" level="WARN" />
+ <logger name="org.eclipse.jetty" level="WARN" />
<logger name="org.onap.aai.interceptors.post" level="DEBUG"
additivity="false">
@@ -248,19 +247,19 @@
<appender-ref ref="dmaapAAIEventConsumerDebug" />
<appender-ref ref="dmaapAAIEventConsumerMetric" />
</logger>
- <logger name="org.apache" level="{{.Values.log.logger.apache}}" />
- <logger name="org.zookeeper" level="{{.Values.log.logger.zookeeper}}" />
- <logger name="com.thinkaurelius" level="{{.Values.log.logger.thinkaurelius}}" />
- <logger name="com.att.aft.dme2" level="{{.Values.log.logger.attAftDme2}}" />
+ <logger name="org.apache" level="OFF" />
+ <logger name="org.zookeeper" level="OFF" />
+ <logger name="com.thinkaurelius" level="WARN" />
+ <logger name="com.att.aft.dme2" level="WARN" />
<!-- ============================================================================ -->
<!-- General EELF logger -->
<!-- ============================================================================ -->
- <logger name="com.att.eelf" level="INFO" additivity="false">
+ <logger name="com.att.eelf" level="WARN" additivity="false">
<appender-ref ref="asyncDEBUG" />
<appender-ref ref="asyncERROR" />
<appender-ref ref="asyncMETRIC" />
</logger>
- <root level="{{.Values.log.root.level}}">
+ <root level="DEBUG">
<appender-ref ref="external" />
{{if .Values.global.config.logback.console.enabled}}
<appender-ref ref="STDOUT" />
diff --git a/components/aai-traversal/values.yaml b/components/aai-traversal/values.yaml
index df2796c..04185ee 100644
--- a/components/aai-traversal/values.yaml
+++ b/components/aai-traversal/values.yaml
@@ -97,26 +97,6 @@ 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: