diff options
author | Vitaly Takmazov | 2022-12-20 02:10:32 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-20 02:10:32 +0300 |
commit | 95b44e16a48c32b7e78a42cacb7a1dbaa41ce272 (patch) | |
tree | 75b721dc34903016cc9be488cf83a5a8185073b1 /src | |
parent | 364e52ffaa8f23929194077be63bb965148007e7 (diff) |
logback: move production settings to production profile
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/logback-spring.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 7dc247c4..ccbd03d0 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -2,13 +2,13 @@ <!DOCTYPE configuration> <configuration> <include resource="org/springframework/boot/logging/logback/defaults.xml" /> - <property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}server.log}" /> - <include resource="org/springframework/boot/logging/logback/file-appender.xml" /> <include resource="org/springframework/boot/logging/logback/console-appender.xml" /> <root level="INFO"> <appender-ref ref="CONSOLE" /> </root> <springProfile name="production"> + <include resource="org/springframework/boot/logging/logback/file-appender.xml" /> + <property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}server.log}" /> <root level="INFO"> <appender-ref ref="CONSOLE" /> <appender-ref ref="FILE" /> |