summaryrefslogtreecommitdiffstats
path: root/runtime/src/main/resources/logback-spring.xml
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/main/resources/logback-spring.xml')
-rw-r--r--runtime/src/main/resources/logback-spring.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/src/main/resources/logback-spring.xml b/runtime/src/main/resources/logback-spring.xml
new file mode 100644
index 000000000..ffa497f1d
--- /dev/null
+++ b/runtime/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