fixes #259: disable file logging by setting system property "disable-file-logging"

This commit is contained in:
Ulrich Zielhofer
2021-12-29 13:28:15 +01:00
parent 9c5fba421d
commit 96097464ec
2 changed files with 29 additions and 20 deletions

View File

@@ -42,6 +42,11 @@
<artifactId>jargs</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.1.6</version>
</dependency>
<dependency>
<groupId>org.riversun</groupId>
<artifactId>bigdoc</artifactId>

View File

@@ -24,7 +24,11 @@
<!-- Configure so that it outputs to both console and log file -->
<root level="INFO">
<if condition='!isDefined("disable-file-logging")'>
<then>
<appender-ref ref="FILE" />
</then>
</if>
<appender-ref ref="STDERR" />
</root>
</configuration>