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

logger.logback_ts_clients.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!-- 只需配置好 log.dir 属性-->
<configuration debug="false">
	<property name="log.dir" value="${sys:logFilePath}/logs" />

	<appender name="StatisticAppender"
			  class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>${log.dir}/logs/metrics_statistic.log</file>
		<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
			<level>INFO</level>
		</filter>
		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
			<fileNamePattern>${log.dir}/logs/metrics_statistic-%d{yyyy-MM-dd}.log
			</fileNamePattern>
			<maxHistory>30</maxHistory>
		</rollingPolicy>
		<encoder charset="UTF-8">
			<!--<pattern>%d [%thread] %-5p [%c] [%F:%L] - %msg%n</pattern>-->
            <pattern>%msg%n</pattern>

		</encoder>
	</appender>

	<logger name="net.wicp.tams.common.metrics" additivity="false">
		<level value="INFO" />
		<appender-ref ref="StatisticAppender" />
	</logger>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy