<configuration scan="true" scanPeriod="30 seconds">
    <!--You can use attribute debug="true" to output the config location to console, or packagingData="true" to add packages info to stacktrace output-->
    <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>

    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
        <file>console.log</file>
        <encoder class="org.qubership.atp.integration.configuration.logging.logback.AtpPatternLayoutEncoder">
            <!--See also https://logback.qos.ch/manual/layouts.html-->
            <pattern>%date{YYYY-MM-dd HH:mm:ss.SS} %-7([%level]) "%thread" [%logger#%method] -
                %message%n
            </pattern>
            <charset>UTF-8</charset>
        </encoder>
        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <maxIndex>10</maxIndex>
            <FileNamePattern>console.log.%i</FileNamePattern>
        </rollingPolicy>
        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <maxFileSize>10Mb</maxFileSize>
        </triggeringPolicy>
    </appender>

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