<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xml>
<Configuration status="WARN">

    <Properties>
        <Property name="filename">dreadball-toolkit-web-test.log</Property>
    </Properties>

    <Appenders>
        <Console name="console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
        </Console>

        <File name="file" fileName="${filename}">
            <PatternLayout>
                <Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
                </Pattern>
            </PatternLayout>
        </File>
    </Appenders>

    <Loggers>
        <Logger name="com.wandrell" level="debug" additivity="false">
            <AppenderRef ref="file" />
        </Logger>

        <logger name="org.eclipse.jetty" level="trace" additivity="false">
            <AppenderRef ref="file" />
        </logger>
        
        <!-- Queries logs -->

        <logger name="org.hibernate.SQL" level="trace" additivity="false">
            <AppenderRef ref="file" />
        </logger>
        
        <!-- Root -->

        <Root level="error">
            <AppenderRef ref="file" />
        </Root>
    </Loggers>

</Configuration>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xml>
<Configuration status="WARN">

   <Properties>
      <Property name="filename">dreadball-toolkit-web-test.log</Property>
   </Properties>

   <Appenders>
      <Console name="console" target="SYSTEM_OUT">
         <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
      </Console>

      <File name="file" fileName="${filename}">
         <PatternLayout>
            <Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
            </Pattern>
         </PatternLayout>
      </File>
   </Appenders>

   <Loggers>
      <Logger name="com.wandrell" level="debug" additivity="false">
         <AppenderRef ref="file" />
      </Logger>

      <logger name="org.eclipse.jetty" level="trace" additivity="false">
         <AppenderRef ref="file" />
      </logger>

      <!-- Queries logs -->

      <logger name="org.hibernate.SQL" level="trace" additivity="false">
         <AppenderRef ref="console" />
      </logger>

      <!-- Root -->

      <Root level="error">
         <AppenderRef ref="file" />
      </Root>
   </Loggers>

</Configuration>
Set the logger to print queries for testing
Set the logger to print queries for testing