diff options
Diffstat (limited to 'prh-app-server/src/main/resources/logback-spring.xml')
-rw-r--r-- | prh-app-server/src/main/resources/logback-spring.xml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/prh-app-server/src/main/resources/logback-spring.xml b/prh-app-server/src/main/resources/logback-spring.xml index d6a37ade..060cf6c5 100644 --- a/prh-app-server/src/main/resources/logback-spring.xml +++ b/prh-app-server/src/main/resources/logback-spring.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<configuration> +<configuration debug="false" scan="false"> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <property name="outputFilename" value="prh-app-server_output"/> <property name="logPath" value="/var/log/ONAP/prh/prh-app-server"/> @@ -16,8 +16,6 @@ |%replace(%replace(%marker){'\t','\\\\t'}){'\n','\\\\n'} |%thread |%n"/> - <variable name="logLevel" value="${LOG_LEVEL:-ERROR}"/> - <variable name="logLevelPrh" value="${PRH_LOG_LEVEL:-WARN}"/> <springProfile name="prod"> <appender class="ch.qos.logback.core.ConsoleAppender" name="CONSOLE" target="SYSTEM_OUT"> @@ -39,11 +37,20 @@ </rollingPolicy> </appender> - <logger name="org.onap.dcaegen2.services.prh" level="${logLevelPrh}"/> - - <root level="${logLevel}"> + <root level="INFO"> <appender-ref ref="CONSOLE"/> <appender-ref ref="ROLLING-FILE"/> </root> </springProfile> + + <springProfile name="dev"> + <appender class="ch.qos.logback.core.ConsoleAppender" name="CONSOLE" target="SYSTEM_OUT"> + <encoder> + <pattern>${CONSOLE_LOG_PATTERN}</pattern> <!-- from org/springframework/boot/logging/logback/defaults.xml --> + </encoder> + </appender> + <root level="INFO"> + <appender-ref ref="CONSOLE"/> + </root> + </springProfile> </configuration> |