diff options
author | 2018-03-28 14:20:58 +0200 | |
---|---|---|
committer | 2018-03-28 14:20:58 +0200 | |
commit | d8e4e88b6080dfd701ea7aa64d033c38899e77c6 (patch) | |
tree | 87e23a50375086b4c3737084f9e9d6f6d17229a2 /prh-app-server/src/main/resources/logback.xml | |
parent | 961af3e21239edd4714e7e586ed5db902bd85d53 (diff) |
Added logs
Improve Dockerfile and build fat jar
Change-Id: I8b4dd1a56350af310c70236d6843ae1c357ad95e
Issue-ID: DCAEGEN2-407
Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'prh-app-server/src/main/resources/logback.xml')
-rw-r--r-- | prh-app-server/src/main/resources/logback.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/prh-app-server/src/main/resources/logback.xml b/prh-app-server/src/main/resources/logback.xml new file mode 100644 index 00000000..5f5175e0 --- /dev/null +++ b/prh-app-server/src/main/resources/logback.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <property name="LOG_PATH" value="logs"/> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n</pattern> + </encoder> + </appender> + + <appender name="FILE" class="ch.qos.logback.core.FileAppender"> + <file>${LOG_PATH}/logFile.log</file> + <append>true</append> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n</pattern> + </encoder> + </appender> + + <logger name="org.onap.dcaegen2.services.prh" level="TRACE"/> + <root level="DEBUG"> + <appender-ref ref="STDOUT"/> + <appender-ref ref="FILE"/> + </root> +</configuration>
\ No newline at end of file |