<commit_before><?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <property name="LOG_FILE" value="logs/spring.io.logfile"/>
    <property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex"/>

    <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />

    <logger name="io.spring.site" level="INFO" />
    <logger name="org.apache.http" level="WARN" />

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>${LOG_PATTERN}</pattern>
        </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <prudent>true</prudent>

        <file>${LOG_FILE}</file>

        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>1</maxHistory>
        </rollingPolicy>

        <encoder>
            <pattern>${LOG_PATTERN}</pattern>
        </encoder>
    </appender>

    <root level="INFO">
        <appender-ref ref="FILE" />
        <appender-ref ref="CONSOLE" />
    </root>

    <logger name="org.hibernate.validator.internal.util.Version" level="WARN"/>
    <logger name="org.apache.coyote.http11.Http11NioProtocol" level="WARN"/>
    <logger name="org.apache.tomcat.util.net.NioSelectorPool" level="WARN"/>
    <logger name="org.apache.catalina.startup.DigesterFactory" level="ERROR"/>

</configuration><commit_msg>Simplify and document logging configuration<commit_after><?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <!-- set the LOG_FILE property that will be used by the base.xml include below -->
    <property name="LOG_FILE" value="logs/application_log"/>

    <!-- pick up reasonable defaults provided by Spring Boot -->
    <include resource="org/springframework/boot/logging/logback/base.xml"/>

    <!-- log at INFO by default -->
    <root level="INFO"/>

    <!-- Apache HttpClient is too verbose at INFO level -->
    <logger level="WARN" name="org.apache.http"/>

    <!-- log high-level information about application startup time, whether from
         Boot's main class or the site's main class. The former is in play when
         running with `java -jar`; the latter when running from within the IDE -->
    <logger level="INFO" name="io.spring.site.web.configuration.ApplicationConfiguration"/>
    <logger level="INFO" name="org.springframework.boot.SpringApplication"/>

    <!-- log generated password for admin endpoints -->
    <logger level="INFO" name="org.springframework.boot.actuate.autoconfigure.SecurityAutoConfiguration$AuthenticationManagerConfiguration"/>


</configuration>
{'fraction_non_alphanumeric': 0.15562678062678062, 'fraction_numerical': 0.00641025641025641, 'mean_word_length': 3.6049180327868853, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 2, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5262188', 'n_tokens_mistral': 854, 'n_tokens_neox': 812, 'n_words': 168}