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

lock.server.1.2.0.source-code.log4j2.xml Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">

    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout>
                <Pattern>%d{yyyy-MM-dd'T'HH:mm:ss,SSSX} %-5level %logger{1.} - %msg%n</Pattern>
            </PatternLayout>
        </Console>

        <RollingRandomAccessFile
                name="InfoLogs"
                fileName="logs/info/latest.log"
                filePattern="logs/info/%d{yyyy-MM-dd}.log.gz"
                ignoreExceptions="false">
            <PatternLayout>
                <Pattern>%d{yyyy-MM-dd'T'HH:mm:ss,SSSX} %-5level %logger{1.} - %msg%n</Pattern>
            </PatternLayout>
            <Policies>
                <OnStartupTriggeringPolicy/>
                <TimeBasedTriggeringPolicy/>
            </Policies>
        </RollingRandomAccessFile>

        <RollingRandomAccessFile
                name="ErrorLogs"
                filePattern="logs/error/%d{yyyy-MM-dd}.log"
                ignoreExceptions="false">
            <ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
            <PatternLayout>
                <Pattern>%d{yyyy-MM-dd'T'HH:mm:ss,SSSX} %-5level %logger{1.} - %msg%n</Pattern>
            </PatternLayout>
            <Policies>
                <TimeBasedTriggeringPolicy/>
            </Policies>
        </RollingRandomAccessFile>
    </Appenders>

    <Loggers>
        <Root level="INFO">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="InfoLogs"/>
            <AppenderRef ref="ErrorLogs"/>
        </Root>
    </Loggers>

</Configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy