aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/main/resources/logback.xml
diff options
context:
space:
mode:
Diffstat (limited to 'prh-app-server/src/main/resources/logback.xml')
-rw-r--r--prh-app-server/src/main/resources/logback.xml23
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