diff options
author | 2019-05-31 13:00:54 +0200 | |
---|---|---|
committer | 2019-05-31 13:00:54 +0200 | |
commit | 4fba32ec50d81f3cfa860e95357732722c08ae26 (patch) | |
tree | a1b6b0f5ff4ce2db1f8b5c5fb020ac4f62536620 /prh-app-server/src/main/resources | |
parent | dc791333f7820e2e826bf06a60af00b796a7c498 (diff) |
Adding 'dev' profile with default spring's logback console appender to allow starting app from IDE
Change-Id: If59c8678f0fb323b3201eb4f52926e2f2baa3e67
Issue-ID: DCAEGEN2-1544
Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
Diffstat (limited to 'prh-app-server/src/main/resources')
-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> |