<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <Properties>
        <Property name="logsFolder">target/logs</Property>
    </Properties>
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
        </Console>
        <RollingFile name="LogFile" filePattern="${logsFolder}/tests-%d{yyyyMMddHHmmss}.log">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%throwable{short.message}%n"/>
            <Policies>
                <OnStartupTriggeringPolicy/>
            </Policies>
            <DirectWriteRolloverStrategy/>
        </RollingFile>
    </Appenders>
    <Loggers>
        <Logger name="CblRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="OpenApiRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="OpenApiCARestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="AutoApiRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="CaGwAuthRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="CaGwRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="MvcrRestLogger" level="debug">
            <AppenderRef ref="Console"/>
        </Logger>
        <Logger name="VaultConnectorLogger" level="warn">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="LogFile"/>
        </Logger>
        <Root level="info">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="LogFile"/>
        </Root>
    </Loggers>
</Configuration>