fixes #259: disable file logging by setting system property "disable-file-logging"
So no emtpy Logfile and no directory will be created.
This commit is contained in:
@@ -7,20 +7,23 @@
|
|||||||
</encoder>
|
</encoder>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
<if condition='!isDefined("disable-file-logging")'>
|
||||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
<then>
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
<!-- Daily rollover -->
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
<fileNamePattern>log/ZUV-%d{yyyy-MM}.log</fileNamePattern>
|
<!-- Daily rollover -->
|
||||||
|
<fileNamePattern>log/ZUV-%d{yyyy-MM}.log</fileNamePattern>
|
||||||
<!-- Keep 5 years worth of history -->
|
|
||||||
<maxHistory>60</maxHistory>
|
<!-- Keep 5 years worth of history -->
|
||||||
</rollingPolicy>
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
<encoder>
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
<encoder>
|
||||||
</encoder>
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
</appender>
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
<!-- Configure so that it outputs to both console and log file -->
|
<!-- Configure so that it outputs to both console and log file -->
|
||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
|
|||||||
Reference in New Issue
Block a user