diff options
-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" /> |