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

.depclean-maven-plugin.1.0.0.source-code.log4j2.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<Configuration xmlns:xi="http://www.w3.org/2001/XInclude"
               packages="se.kth.jdbl" status="WARN">
    <Appenders>
        <xi:include
                href="log4j2-includes/console-appender_pattern-layout_colored.xml"/>
        <Console name="ConsoleAppender" target="SYSTEM_OUT">
            <PatternLayout
                    pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
        </Console>
        <Console name="ConsoleRedAppender" target="SYSTEM_OUT">
            <PatternLayout pattern="%style{%message}{red}%n"/>
            <MarkerFilter marker="CONN_TRACE"/>
        </Console>
        <Console name="ConsoleGreenAppender" target="SYSTEM_OUT">
            <PatternLayout
                    pattern="%style{userId=%X{userId}:}{white} %style{%message}{green}%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Logger name="CONSOLE_PATTERN_APPENDER_MARKER" level="TRACE"
                additivity="false">
            <AppenderRef ref="ConsoleRedAppender"/>
        </Logger>
        <Logger name="CONSOLE_PATTERN_APPENDER_THREAD_CONTEXT"
                level="INFO" additivity="false">
            <AppenderRef ref="ConsoleGreenAppender"/>
            <ThreadContextMapFilter>
                <KeyValuePair key="userId" value="1000"/>
            </ThreadContextMapFilter>
        </Logger>
        <Root level="DEBUG">
            <AppenderRef ref="ConsoleAppender"/>
        </Root>
    </Loggers>
</Configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy