Merge pull request #335 from Heavenfighter/master

fixes #259: disable file logging by setting system property "disabl…
This commit is contained in:
Jochen Staerk
2023-08-31 08:56:58 +02:00
committed by GitHub

View File

@@ -7,20 +7,23 @@
</encoder> </encoder>
</appender> </appender>
<if condition='!isDefined("disable-file-logging")'>
<then>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- Daily rollover -->
<fileNamePattern>log/ZUV-%d{yyyy-MM}.log</fileNamePattern>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <!-- Keep 5 years worth of history -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <maxHistory>60</maxHistory>
<!-- Daily rollover --> </rollingPolicy>
<fileNamePattern>log/ZUV-%d{yyyy-MM}.log</fileNamePattern>
<!-- Keep 5 years worth of history --> <encoder>
<maxHistory>60</maxHistory> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</rollingPolicy> </encoder>
</appender>
<encoder> </then>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> </if>
</encoder>
</appender>
<!-- 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">