<Configuration status="warn" packages="com.kdgregory.log4j2.aws">

    <Appenders>
        <Console name="CONSOLE">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5p - %X{testName}: %m%n" />
        </Console>

        <CloudWatchAppender name="test">
            <PatternLayout pattern="[%t] %-5p %c - %m%n" />
            <logGroup>AppenderIntegrationTest-smoketest</logGroup>
            <logStream>AppenderTest-{aws:accountId}</logStream>
            <retentionPeriod>7</retentionPeriod>
            <batchDelay>500</batchDelay>
        </CloudWatchAppender>
    </Appenders>

    <Loggers>
        <Root level="info">
            <AppenderRef ref="CONSOLE" />
        </Root>

        <Logger name="TestLogger" level="debug" additivity="false">
            <AppenderRef ref="test" />
        </Logger>
    </Loggers>

</Configuration>
