logger.log4j2_ts_clients.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <configuration status="off"> <Properties> <Property name="LOG_HOME">${sys:logFilePath}</Property> <Property name="LOG_NAME">${sys:logFileName}.log</Property> </Properties> <appenders> <RollingFile name="StatisticAppender" fileName="${LOG_HOME}/${LOG_NAME}" filePattern="${LOG_HOME}/${LOG_NAME}.%d{yyyy-MM-dd}" append="true"> <PatternLayout pattern="%msg%n" /> <Policies> <TimeBasedTriggeringPolicy modulate="true" interval="1" /> <SizeBasedTriggeringPolicy size="1024 MB"/> </Policies> <DefaultRolloverStrategy max="10" /> </RollingFile> </appenders> <loggers> <logger name="net.wicp.tams.common.metrics" level="INFO" additivity="false"> <AppenderRef ref="StatisticAppender" /> </logger> </loggers> </configuration>