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>
diff --git a/prh-app-server/src/main/resources/application.yaml b/prh-app-server/src/main/resources/application.yaml
index a9a8942..8ad90b3 100644
--- a/prh-app-server/src/main/resources/application.yaml
+++ b/prh-app-server/src/main/resources/application.yaml
@@ -9,3 +9,11 @@
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 70908b0..03f4a10 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>