aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/logback-spring.xml
diff options
context:
space:
mode:
authorGervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com>2020-03-31 22:43:51 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-31 22:43:51 +0000
commit1eafc9448d24f5b0eda40f62566bdf93cc4f5a6e (patch)
treedfeda6adeef056a4b7cb5a6acc7dcc999f8d2513 /src/main/resources/logback-spring.xml
parent73be3cb5e615c119a09d95117246a141bbb55af7 (diff)
parent580141f7cf72d4a120722fc7b870dfc5c3017ced (diff)
Merge "Rework the logs"
Diffstat (limited to 'src/main/resources/logback-spring.xml')
-rw-r--r--src/main/resources/logback-spring.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
new file mode 100644
index 000000000..ffa497f1d
--- /dev/null
+++ b/src/main/resources/logback-spring.xml
@@ -0,0 +1,19 @@
+<configuration debug="true">
+ <springProperty name="logbackFilePath"
+ source="clamp.config.logback.path" />
+ <springProperty name="logbackFileName"
+ source="clamp.config.logback.filename" />
+ <springProperty name="logDirectory"
+ source="clamp.config.log.path" />
+
+ <if condition='isNull("logbackFilePath")'>
+ <then>
+ <!-- Classpath case -->
+ <include resource="${logbackFileName}" />
+ </then>
+ <else>
+ <!-- File system case -->
+ <include file="${logbackFilePath}/${logbackFileName}" />
+ </else>
+ </if>
+</configuration> \ No newline at end of file