<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="TESTFILE" class="ch.qos.logback.core.FileAppender">
    <file>${log.file:-build/test.log}</file>
    <append>true</append>
    <encoder>
      <pattern>%-5level %logger{24} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
    <filter class="ch.qos.logback.classic.filter.LevelFilter">
      <level>${console.log.level:-WARN}</level>
      <onMatch>ACCEPT</onMatch>
      <onMismatch>DENY</onMismatch>
    </filter>
    <target>System.err</target>
    <encoder>
      <pattern>%-5level %logger{24} - %msg%n</pattern>
    </encoder>
  </appender>

  <logger name="org.grouplens.grapht"
          level="INFO"/>

  <root level="${log.level:-DEBUG}">
    <appender-ref ref="TESTFILE"/>
    <appender-ref ref="CONSOLE"/>
  </root>
</configuration>

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="TESTFILE" class="ch.qos.logback.core.FileAppender">
    <file>${log.file:-build/test.log}</file>
    <append>false</append>
    <encoder>
      <pattern>%-5level %logger{24} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
    <filter class="ch.qos.logback.classic.filter.LevelFilter">
      <level>${console.log.level:-WARN}</level>
      <onMatch>ACCEPT</onMatch>
      <onMismatch>DENY</onMismatch>
    </filter>
    <target>System.err</target>
    <encoder>
      <pattern>%-5level %logger{24} - %msg%n</pattern>
    </encoder>
  </appender>

  <logger name="org.grouplens.grapht"
          level="INFO"/>

  <root level="${log.level:-DEBUG}">
    <appender-ref ref="TESTFILE"/>
    <appender-ref ref="CONSOLE"/>
  </root>
</configuration>

Make test logs not append
Make test logs not append
