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

    <Appenders>
        <Console name="console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </Console>
        <Console name="login-appender" target="SYSTEM_OUT">
            <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </Console>
        <!-- Alternative login audit appender example
        <File name="login-appender" fileName="/var/log/bastillion-login-audit.log" append="true">
           <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </File>
        -->
        <!-- System audit example using logstash
        <Socket name="logstash-socket-appender" host="127.0.0.1" port="5300">
            <SerializedLayout/>
        </Socket>
        -->
    </Appenders>

    <Loggers>
        <!-- System audit example using logstash
        <Logger name="io.bastillion.manage.util.SystemAudit" level="info" additivity="false">
            <AppenderRef ref="logstash-socket-appender"/>
        </Logger>
        -->
        <Logger name="io.bastillion.manage.control.LoginAudit" level="info" additivity="false">
            <AppenderRef ref="login-appender"/>
        </Logger>
        <Root level="warn">
            <AppenderRef ref="console"/>
        </Root><commit_msg>Added better log4j examples<commit_after><?xml version="1.0" encoding="UTF-8"?>
<Configuration>

    <Appenders>
        <Console name="console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </Console>
        <!--
        <File name="audit-appender" fileName="/var/log/bastillion-audit.log" append="true">
            <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </File>
        <File name="login-appender" fileName="/var/log/bastillion-login.log" append="true">
           <PatternLayout pattern="%d %-5p %c{1} - %m%n"/>
        </File>
        -->
    </Appenders>

    <Loggers>
        <!-- System audit example
        <Logger name="io.bastillion.manage.util.SystemAudit" level="info" additivity="false">
            <AppenderRef ref="audit-appender"/>
        </Logger>
        <Logger name="io.bastillion.manage.control.LoginAudit" level="info" additivity="false">
            <AppenderRef ref="login-appender"/>
        </Logger>
        -->
        <Logger name="io.bastillion.manage.control.LoginAudit" level="info" additivity="false">
            <AppenderRef ref="console"/>
        </Logger>
        <Root level="warn">
            <AppenderRef ref="console"/>
        </Root>
{'fraction_non_alphanumeric': 0.1736573892591141, 'fraction_numerical': 0.011368090944727557, 'mean_word_length': 2.305699481865285, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 2, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 1, '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': '2620437', 'n_tokens_mistral': 788, 'n_tokens_neox': 776, 'n_words': 142}