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,7 +7,8 @@
</encoder>
</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 -->
@@ -21,6 +22,8 @@
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
</then>
</if>
<!-- Configure so that it outputs to both console and log file -->
<root level="INFO">