diff options
Diffstat (limited to 'prh-app-server/src/main')
-rw-r--r-- | prh-app-server/src/main/resources/application.yaml | 8 | ||||
-rw-r--r-- | prh-app-server/src/main/resources/logback-spring.xml | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/prh-app-server/src/main/resources/application.yaml b/prh-app-server/src/main/resources/application.yaml index a9a89421..8ad90b3a 100644 --- a/prh-app-server/src/main/resources/application.yaml +++ b/prh-app-server/src/main/resources/application.yaml @@ -9,3 +9,11 @@ server: key-store: classpath:keystore-local key-password: nokiapnf keyAlias: tomcat-localhost + +--- +spring: + profiles: dev +logging: + level: + org.onap.dcaegen2.services.prh: info + org.onap.dcaegen2.services.sdk: info
\ No newline at end of file diff --git a/prh-app-server/src/main/resources/logback-spring.xml b/prh-app-server/src/main/resources/logback-spring.xml index 70908b07..03f4a103 100644 --- a/prh-app-server/src/main/resources/logback-spring.xml +++ b/prh-app-server/src/main/resources/logback-spring.xml @@ -47,4 +47,15 @@ <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> |