<Configuration xmlns="http://logging.apache.org/log4j/2.0/config" >
    <Appenders>
        <Console name="ConsoleInfo" target="SYSTEM_OUT">
            <PatternLayout pattern="- %d{HH:mm:ss,SSS} %-20c{1} -- %msg%n"/>
            <Filters>
                <LevelMatchFilter level="INFO" onMatch="ALLOW" onMismatch="DENY"/>
                <MarkerFilter marker="PROCESS" onMatch="DENY" onMismatch="NEUTRAL" />
            </Filters>
        </Console>
        <Console name="ConsoleWarn" target="SYSTEM_OUT">
            <PatternLayout pattern="⚠ %d{HH:mm:ss,SSS} %-20c{1} -- %msg%n"/>
            <Filters>
                <LevelMatchFilter level="WARN" onMatch="ALLOW" onMismatch="DENY"/>
                <MarkerFilter marker="PROCESS" onMatch="DENY" onMismatch="NEUTRAL" />
            </Filters>
        </Console>
        <Console name="ConsoleError" target="SYSTEM_OUT">
            <PatternLayout pattern="🔥 %d{HH:mm:ss,SSS} %-20c{1} -- %msg%n"/>
            <Filters>
                <LevelMatchFilter level="ERROR" onMatch="ALLOW" onMismatch="DENY"/>
                <MarkerFilter marker="PROCESS" onMatch="DENY" onMismatch="NEUTRAL" />
            </Filters>
        </Console>
        <Console name="ConsoleFatal" target="SYSTEM_OUT">
            <PatternLayout pattern="💀 %d{HH:mm:ss,SSS} %-20c{1} -- %msg%n"/>
            <Filters>
                <LevelMatchFilter level="FATAL" onMatch="ALLOW" onMismatch="DENY"/>
                <MarkerFilter marker="PROCESS" onMatch="DENY" onMismatch="NEUTRAL" />
            </Filters>
        </Console>
        <Console name="ProcessConsole" target="SYSTEM_OUT">
            <PatternLayout pattern="%style{%msg%n}{FG_Cyan}"/>
            <Filters>
                <MarkerFilter marker="PROCESS" onMatch="ALLOW" onMismatch="DENY" />
            </Filters>
        </Console>
    </Appenders>
    <Loggers>
        <Logger name="org.apache.zookeeper" level="WARN" />
        <Logger name="org.apache.pdfbox" level="ERROR" />
        <Logger name="org.apache.fontbox.ttf" level="ERROR" />
        <Root level="info">
            <AppenderRef ref="ConsoleInfo"/>
            <AppenderRef ref="ConsoleWarn"/>
            <AppenderRef ref="ConsoleError"/>
            <AppenderRef ref="ConsoleFatal"/>
            <AppenderRef ref="ProcessConsole"/>
        </Root>
    </Loggers>
</Configuration>