diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-09-02 06:24:19 +0000 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-09-02 06:24:19 +0000 |
commit | 39e8581bee5a7674fea6773dd06de87c1ff32784 (patch) | |
tree | e547609ce61be841e8129251b0411004fcb278bf /components/aai-resources/resources | |
parent | befaa5500924f9ebda0b4bf65d8d6ab5a9f0745a (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-resources/resources')
3 files changed, 38 insertions, 33 deletions
diff --git a/components/aai-resources/resources/config/logback.xml b/components/aai-resources/resources/config/logback.xml index f532b4f..ba06414 100644 --- a/components/aai-resources/resources/config/logback.xml +++ b/components/aai-resources/resources/config/logback.xml @@ -5,7 +5,6 @@ ================================================================================ Copyright © 2017 AT&T Intellectual Property. All rights reserved. Modifications Copyright © 2018 Amdocs, 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. @@ -60,7 +59,9 @@ <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> - <pattern>{{ .Values.log.consolePattern.config }}</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> @@ -279,23 +280,23 @@ </appender> <!-- logback internals logging --> - <logger name="ch.qos.logback.classic" level="{{.Values.logback.loggger.qosLogbackClassic}}" /> - <logger name="ch.qos.logback.core" level="{{.Values.logback.loggger.qosLogbackCore}}" /> + <logger name="ch.qos.logback.classic" level="WARN" /> + <logger name="ch.qos.logback.core" level="WARN" /> - <logger name="com.att.aft.dme2" level="{{.Values.logback.loggger.attAftDme2}}" /> - <logger name="com.jayway.jsonpath" level="{{.Values.logback.loggger.jaywayJsonpath}}" /> + <logger name="com.att.aft.dme2" level="WARN" /> + <logger name="com.jayway.jsonpath" level="WARN" /> - <logger name="org.apache" level="{{.Values.logback.loggger.apache}}" /> - <logger name="org.apache.commons" level="{{.Values.logback.loggger.apacheCommons}}" /> - <logger name="org.apache.zookeeper" level="{{.Values.logback.loggger.apacheZookeeper}}" /> - <logger name="org.codehaus.groovy" level="{{.Values.logback.loggger.codehausGroovy}}" /> - <logger name="org.eclipse.jetty" level="{{.Values.logback.loggger.eclipseJetty}}" /> + <logger name="org.apache" level="OFF" /> + <logger name="org.apache.commons" level="WARN" /> + <logger name="org.apache.zookeeper" level="OFF" /> + <logger name="org.codehaus.groovy" level="WARN" /> + <logger name="org.eclipse.jetty" level="WARN" /> <!-- Spring related loggers --> - <logger name="org.springframework" level="{{.Values.logback.loggger.springframework}}" /> - <logger name="org.springframework.beans" level="{{.Values.logback.loggger.springframeworkBeans}}" /> - <logger name="org.springframework.web" level="{{.Values.logback.loggger.springframeworkWeb}}" /> - <logger name="org.janusgraph" level="{{.Values.logback.loggger.janusgraph}}" /> - <logger name="org.zookeeper" level="{{.Values.logback.loggger.zookeeper}}" /> + <logger name="org.springframework" level="WARN" /> + <logger name="org.springframework.beans" level="WARN" /> + <logger name="org.springframework.web" level="WARN" /> + <logger name="org.janusgraph" level="WARN" /> + <logger name="org.zookeeper" level="OFF" /> <logger name="org.onap.aai" level="DEBUG" additivity="false"> @@ -334,7 +335,7 @@ <appender-ref ref="dmaapAAIEventConsumerInfo" /> </logger> - <root level="{{.Values.logback.rootLogLevel.config}}"> + <root level="DEBUG"> <appender-ref ref="external" /> <appender-ref ref="STDOUT" /> </root> diff --git a/components/aai-resources/resources/fproxy/config/logback-spring.xml b/components/aai-resources/resources/fproxy/config/logback-spring.xml index 6d24a23..9a08348 100644 --- a/components/aai-resources/resources/fproxy/config/logback-spring.xml +++ b/components/aai-resources/resources/fproxy/config/logback-spring.xml @@ -3,14 +3,16 @@ <property name="LOGS" value="./logs/AAF-FPS" /> <property name="FILEPREFIX" value="application" /> - - <appender name="STDOUT" + + <appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> - <Pattern>{{ .Values.log.consolePattern.fproxy }}</Pattern> + <Pattern> + %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable + </Pattern> </layout> </appender> - + <appender name="RollingFile" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${LOGS}/${FILEPREFIX}.log</file> @@ -30,14 +32,14 @@ </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> </appender> - + <!-- LOG everything at INFO level --> - <root level="{{.Values.logback.rootLogLevel.fproxy}}"> + <root level="info"> <appender-ref ref="RollingFile" /> - <appender-ref ref="STDOUT" /> + <appender-ref ref="Console" /> </root> - + <!-- LOG "com.baeldung*" at TRACE level --> <logger name="org.onap.aaf.fproxy" level="info" /> - + </configuration>
\ No newline at end of file diff --git a/components/aai-resources/resources/rproxy/config/logback-spring.xml b/components/aai-resources/resources/rproxy/config/logback-spring.xml index c0c506a..799fd86 100644 --- a/components/aai-resources/resources/rproxy/config/logback-spring.xml +++ b/components/aai-resources/resources/rproxy/config/logback-spring.xml @@ -4,10 +4,12 @@ <property name="LOGS" value="./logs/reverse-proxy" /> <property name="FILEPREFIX" value="application" /> - <appender name="STDOUT" + <appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> - <Pattern>{{ .Values.log.consolePattern.rproxy }}</Pattern> + <Pattern> + %d{ISO8601} %-5level [%t] %C{1.}: %msg%n%throwable + </Pattern> </layout> </appender> @@ -30,14 +32,14 @@ </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> </appender> - + <!-- LOG everything at INFO level --> - <root level="{{.Values.logback.rootLogLevelrproxy}}"> + <root level="info"> <appender-ref ref="RollingFile" /> - <appender-ref ref="STDOUT" /> + <appender-ref ref="Console" /> </root> - + <!-- LOG "com.baeldung*" at TRACE level --> <logger name="org.onap.aaf.rproxy" level="info" /> - + </configuration> |