aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/src/main/resources/log4j2.xml
blob: 250f417097963cb2f6f3cb34abb7a4c80bcee00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <Properties>
        <Property name="log4j.logLevel" value="info"/>
    </Properties>
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{ISO8601} +%r [%t] %-5p %c %x - %m%n"/>
        </Console>
        <Console name="ColorConsole" target="SYSTEM_OUT">
            <PatternLayout pattern="%style{%d{ISO8601} +%r}{yellow} %highlight{%-5level}{STYLE=Logback} %style{[%t]}{yellow} %style{%c{1.}}{BRIGHT} %message%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Root level="${sys:log4j.logLevel}">
            <AppenderRef ref="ColorConsole"/>
        </Root>
    </Loggers>
</Configuration>