<configuration>
    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file>target/reference.log</file>
        <append>false</append>
        <encoder>
            <pattern>%d{ISO8601} %-5level [%thread] [%logger{36}]  %msg%n</pattern>
        </encoder>
    </appender>

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

    <appender name="CapturingAppender" class="org.apache.pekko.stream.connectors.testkit.CapturingAppender"/>

    <logger name="org.apache.pekko.stream.connectors.testkit.CapturingAppenderDelegate">
        <appender-ref ref="STDOUT"/>
    </logger>

    <logger name="org.apache.pekko" level="DEBUG"/>
    <logger name="org.apache.pekko.stream.connectors" level="debug"/>

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