diff options
author | Gervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com> | 2020-03-31 22:43:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-31 22:43:51 +0000 |
commit | 1eafc9448d24f5b0eda40f62566bdf93cc4f5a6e (patch) | |
tree | dfeda6adeef056a4b7cb5a6acc7dcc999f8d2513 /src/main/resources/logback-spring.xml | |
parent | 73be3cb5e615c119a09d95117246a141bbb55af7 (diff) | |
parent | 580141f7cf72d4a120722fc7b870dfc5c3017ced (diff) |
Merge "Rework the logs"
Diffstat (limited to 'src/main/resources/logback-spring.xml')
-rw-r--r-- | src/main/resources/logback-spring.xml | 19 |
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 |