aboutsummaryrefslogtreecommitdiffstats
path: root/ueb-listener/src/main/resources/log4j2.xml
blob: 23ab908a5da8ac4b9fd3c6427a213d78bb579cd6 (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
25
26
<?xml version="1.0" encoding="UTF-8"?>

<Configuration status="debug">
    <Properties>
        <Property name="logDir">$${env:LOGDIR:-logs}</Property>
    </Properties>
    <Appenders>
        <RollingFile name="LOGFILE" fileName="${logDir}/ueb-listener.log"
                     filePattern="${logDir}/ueb-listener-%i.log">
            <PatternLayout pattern="%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n" />
            <Policies>
                <SizeBasedTriggeringPolicy size="10 MB" />
            </Policies>
            <DefaultRolloverStrategy max="10"/>
        </RollingFile>
        <Console name="CONSOLE" target="SYSTEM_OUT">
            <PatternLayout pattern="%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n" />
        </Console>
    </Appenders>
    <Loggers>
        <Root level="debug">
            <AppenderRef ref="LOGFILE"/>
            <AppenderRef ref="CONSOLE"/>
        </Root>
    </Loggers>
</Configuration>