<!--
  ~ Copyright (C) 2024 S&P Global.
  ~
  ~ All Rights Reserved
  ~
  ~ Notice: The information, data, processing technology, software (including source code),
  ~ technical and intellectual concepts and processes and all other materials provided
  ~ (collectively the "Property") are Copyright © 2020, S&P Global and/or its affiliates
  ~ (together "S&P Global") and constitute the proprietary and confidential information of
  ~ S&P Global. S&P Global reserves all rights in and to the Property. Any copying,
  ~ reproduction, distribution, transmission or disclosure of the Property, in any form, is
  ~ strictly prohibited without the prior written consent of S&P Global. Unless otherwise
  ~ agreed in writing, the Property is provided on an "as is" basis and S&P Global makes no
  ~ warranty, express or implied, as to its accuracy, completeness, timeliness, or to any
  ~ results to be obtained by recipient nor shall S&P Global in any way be liable to any
  ~ recipient for any inaccuracies, errors or omissions in the Property. Without limiting the
  ~ generality of the foregoing, S&P Global shall have no liability whatsoever to any
  ~ recipient of the Property, whether in contract, in tort (including negligence), under
  ~ warranty, under statute or otherwise, in respect of any loss or damage suffered by any
  ~ recipient as a result of or in connection with such Property, or any course of action
  ~ determined, by it or any third party, whether or not based on the Property. The S&P Global
  ~ logo is a registered trademark of S&P Global, and the trademarks of S&P Global used
  ~ herein are protected by international laws. Any other names may be trademarks of their
  ~ respective owners.
  -->

<configuration>

    <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
        <resetJUL>true</resetJUL>
    </contextListener>

    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <filter class="ch.qos.logback.classic.filter.LevelFilter">
            <level>ERROR</level>
            <onMatch>ACCEPT</onMatch>
            <onMismatch>DENY</onMismatch>
        </filter>

        <file>applauncher.log</file>

        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <fileNamePattern>applauncher.%i.log.zip</fileNamePattern>
            <minIndex>1</minIndex>
            <maxIndex>3</maxIndex>
        </rollingPolicy>

        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <maxFileSize>5MB</maxFileSize>
        </triggeringPolicy>
        <encoder>
            <pattern>%d{HH:mm:ss} [%thread] %-5level - %msg%n</pattern>
        </encoder>
    </appender>

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

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

