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

rans90.dream-api.0.0.3.source-code.log4j2.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
	<Properties>
        <Property name="log-path">../../logs</Property>
        <Property name="patternLayout">%d{yyyy-MM-dd HH:mm:ss.SSS} [%p] [%thread %X{request-id} %c{1.}] - %highlight{%msg} %ex %n</Property>
    </Properties>

    <Appenders>
        <Console name="Console-Appender" target="SYSTEM_OUT">
            <PatternLayout>
                <pattern>${patternLayout}</pattern>
            </PatternLayout>
        </Console>
        <RollingRandomAccessFile name="Rolling-Random-Access-File-Appender"
                                 fileName="${log-path}/dream-service.log"
                                 filePattern="${log-path}/dream-service.log.%d{yyyy-MM-dd}.log.gz"
                                 immediateFlush="false"
                                 append="true">

            <PatternLayout>
                <pattern>${patternLayout}</pattern>
            </PatternLayout>
            <Policies>
                <TimeBasedTriggeringPolicy interval="1"/>
            </Policies>
        </RollingRandomAccessFile>
    </Appenders>

    <Loggers>
        <Root level="info">
            <AppenderRef ref="Console-Appender"/>
            <AppenderRef ref="Rolling-Random-Access-File-Appender"/>
        </Root>
    </Loggers>
</Configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy