aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/src/main/resources/log4j2.xml
blob: d3941d32d4bc8d9bfd7ab7eb67f9bae83139ae7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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>
        <File name="File" fileName="/var/log/pnfsimulator.log">
            <PatternLayout pattern="%d{ISO8601} +%r [%t] %-5p %c %x - %m%n"/>
        </File>
    </Appenders>
    <Loggers>
        <Root level="${sys:log4j.logLevel}">
            <AppenderRef ref="File"/>
            <AppenderRef ref="ColorConsole"/>
        </Root>
    </Loggers>
</Configuration>