<configuration>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>
                %logger{36} %5level | %msg%n
            </Pattern>
        </layout>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file>studycalendar-test.log</file>
        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>
                %date{HH:mm:ss.SSS} [%thread] %36logger{36} %-5level: %msg%n
            </Pattern>
        </layout>
    </appender>

    <root>
        <appender-ref ref="FILE"/>
    </root>

    <logger name="edu.northwestern.bioinformatics.studycalendar">
        <appender-ref ref="STDOUT"/>
    </logger>

    <logger name="org.hibernate.type">         <level value="trace"/></logger>
    <logger name="org.apache.commons.digester"><level value="info"/></logger>
    <logger name="org.springframework">        <level value="info"/></logger>
    <logger name="org.apache.catalina">        <level value="info"/></logger>
    <logger name="org.apache.jasper">          <level value="info"/></logger>

</configuration>
<configuration>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>
                %logger{36} %5level | %msg%n
            </Pattern>
        </layout>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file>studycalendar-test.log</file>
        <append>false</append>
        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>
                %date{HH:mm:ss.SSS} [%thread] %36logger{36} %-5level: %msg%n
            </Pattern>
        </layout>
    </appender>

    <root>
        <appender-ref ref="FILE"/>
    </root>

    <logger name="edu.northwestern.bioinformatics.studycalendar">
        <appender-ref ref="STDOUT"/>
    </logger>

    <logger name="org.hibernate.type">         <level value="trace"/></logger>
    <logger name="org.apache.commons.digester"><level value="info"/></logger>
    <logger name="org.springframework">        <level value="info"/></logger>
    <logger name="org.apache.catalina">        <level value="info"/></logger>
    <logger name="org.apache.jasper">          <level value="info"/></logger>

</configuration>
Test logfile should truncate for each run
Test logfile should truncate for each run
