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

logger.log4j2.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="error" shutdownHook="disable">
    <appenders>
        <RollingFile name="StatisticAppender" fileName="${sys:metricspath}/metrics-log/metrics_statistic.log"
                     filePattern="${sys:logRoot}/metrics-log/metrics_statistic-%d{yyyy-MM-dd}.log">
            <PatternLayout pattern="%m%n"/>
            <Policies>
               
                <SizeBasedTriggeringPolicy size="30 MB" />
                <TimeBasedTriggeringPolicy />
            </Policies>
        </RollingFile>

    </appenders>
    <loggers>
        <Logger name="net.wicp.tams.common.metrics" level="info"
                additivity="false">
            <AppenderRef ref="StatisticAppender" />
        </Logger>
    </loggers>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy