<configuration>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
        </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${catalina.base}/logs/${tomcat.hostname}/atlas.log</file>

        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${catalina.base}/logs/${tomcat.hostname}/atlas/atlas.%d{yyyy-MM-dd}.log</fileNamePattern>
        </rollingPolicy>

        <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
        </encoder>
    </appender>

    <root level="${log.level.root}">
        <appender-ref ref="STDOUT"/>
    </root>

    <logger name="uk.ac.ebi.atlas" level="${log.level.atlas}" additivity="false">
        <appender-ref ref="FILE"/>
    </logger>

</configuration>

Add logging configuration for tests
Add logging configuration for tests
