<?xml version="1.0" encoding="UTF-8"?>
<configuration>

  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
    <file>runMigration.log</file>
    <append>true</append>
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
      <level>warn</level>
    </filter>
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <!-- Print info messages from the migration tool to stdout -->
  <logger name="org.drools.workbench.jcr2vfsmigration" level="info">
    <appender-ref ref="STDOUT"/>
  </logger>
  <!-- Disable logging for following classes as they generate WARN/ERROR messages
       which can be safely ignore in the jcr2vfs context -->
  <logger name="org.kie.scanner.embedder.MavenSettings" level="OFF"/>
  <logger name="org.drools.compiler.kie.builder.impl.AbstractKieModule" level="OFF"/>

  <root level="debug">
    <appender-ref ref="STDOUT"/>
    <appender-ref ref="FILE"/>
  </root>

</configuration>