aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/logback-spring.xml
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-04-01 00:00:37 +0200
committersebdet <sebastien.determe@intl.att.com>2020-04-01 00:00:37 +0200
commit580141f7cf72d4a120722fc7b870dfc5c3017ced (patch)
treeeef3036a247ce3ecb61da265e43ceb3c77979118 /src/main/resources/logback-spring.xml
parenta2dbf1f653cba8c2d2835b36e8c89c9e41c5d1bb (diff)
Rework the logs
Rework the logs so that it's easier to debug the issues on a lab Issue-ID: CLAMP-804 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9cff98205c2135a759e7e6156ab39f8af8129927
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