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

ynamictp.dynamic-tp-logging.1.1.8-beta.source-code.dtp-log4j2.xml Maven / Gradle / Ivy

There is a newer version: 1.1.9.1-3.x
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
    <Appenders>
        <RollingFile name="MONITOR_LOG_FILE"
                     fileName="${sys:LOG.PATH}/dynamictp/${sys:APP.NAME}.monitor.log"
                     filePattern="${sys:LOG.PATH}/dynamictp/${sys:APP.NAME}.monitor.log.%d{yyyy-MM-dd}.%i">
            <PatternLayout>
                <Pattern>{"datetime": "%d{yyyy-MM-dd HH:mm:ss.SSS}", "app_name": "${sys:APP.NAME}", "thread_pool_metrics": %m}%n</Pattern>
            </PatternLayout>

            <Policies>
                <TimeBasedTriggeringPolicy/>
                <SizeBasedTriggeringPolicy size="${LOG.FILE_SIZE:-200MB}"/>
            </Policies>

            <DefaultRolloverStrategy max="${LOG.MAX_HISTORY:-7}"/>
        </RollingFile>
    </Appenders>

    <Loggers>
        <Logger name="DTP.MONITOR.LOG" level="INFO" additivity="false">
            <AppenderRef ref="MONITOR_LOG_FILE"/>
        </Logger>

        <Root level="INFO">
            <AppenderRef ref="MONITOR_LOG_FILE"/>
        </Root>
    </Loggers>
</Configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy