<?xml version="1.0" encoding="UTF-8"?>
<!--To use this config run tests with system property -Dlog4j.configurationFile=log4j2-DEBUG.xml-->
<Configuration status="WARN">
    <Properties>
        <Property name="messagePattern">%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n</Property>
        <Property name="logsFolder">target/logs</Property>
    </Properties>
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="${messagePattern}"/>
        </Console>
        <RollingFile name="LogFile" filePattern="${logsFolder}/tests-%d{yyyyMMddHHmmss}-debug.log">
            <PatternLayout pattern="${messagePattern}"/>
            <Policies>
                <OnStartupTriggeringPolicy/>
            </Policies>
            <DirectWriteRolloverStrategy/>
        </RollingFile>
    </Appenders>
    <Loggers>
        <Logger name="VaultConnectorLogger" level="warn">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="LogFile"/>
        </Logger>
        <Root level="debug">
            <AppenderRef ref="Console" level="info"/>
            <AppenderRef ref="LogFile"/>
        </Root>
    </Loggers>
</Configuration>