All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dular-discord-bot.2.1.3.source-code.log4j2.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout disableAnsi="false" pattern="[%d{${LOG_DATEFORMAT_PATTERN:-HH:mm:ss.SSS}}][%11.-11t][%c{1}] %highlight{%5.-5p: %m}{SUCCESS=green, FATAL=Blink black BG_Red, ERROR=red, WARN=yellow bold, INFO=white, DEBUG=black bright, MDEBUG=black bright, TRACE=blue}%n"/>
        </Console>
        <RollingFile name="file_logging" fileName="logs/latest.log"
                     filePattern="logs/%d{yyyy-MM-dd_HH}-%i.log.gz">
            <PatternLayout disableAnsi="true" pattern="[%d{${LOG_DATEFORMAT_PATTERN:-dd-MM-yyyy}}][%d{${LOG_DATEFORMAT_PATTERN:-HH:mm:ss.SSS}}][%t][%c] %5p: %m%n"/>
            <Policies>
                <OnStartupTriggeringPolicy/>
            </Policies>
            <DefaultRolloverStrategy>
                <Delete basePath="./logs/" maxDepth="2">
                    <IfFileName glob="*.log.gz">
                        <IfLastModified age="P7D"/>
                    </IfFileName>
                </Delete>
            </DefaultRolloverStrategy>
        </RollingFile>
    </Appenders>
    <Loggers>
        <Root level="ALL">
            <AppenderRef ref="Console" level="mdebug"/>
            <AppenderRef ref="file_logging" level="flow"/>
        </Root>
    </Loggers>
</Configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy