olaris.polaris-all.2.0.0.0-RC1.source-code.polaris-log4j2.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Appenders> <RollingFile name="POLARIS_LOG_FILE" fileName="${sys:polaris.log.home}/polaris.log" filePattern="${sys:polaris.log.home}/polaris.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.log.retain.count:-7}"/> </RollingFile> <RollingFile name="POLARIS_UPDATE_EVENT_LOG_FILE" fileName="${sys:polaris.log.home}/polaris-update-event.log" filePattern="${sys:polaris.log.home}/polaris-update-event.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.update.event.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.update.event.log.retain.count:-7}"/> </RollingFile> <RollingFile name="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE" fileName="${sys:polaris.log.home}/polaris-circuitbreaker-event.log" filePattern="${sys:polaris.log.home}/polaris-circuitbreaker-event.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.circuitbreaker.event.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.circuitbreaker.event.log.retain.count:-7}"/> </RollingFile> <RollingFile name="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE" fileName="${sys:polaris.log.home}/polaris-healthcheck-event.log" filePattern="${sys:polaris.log.home}/polaris-healthcheck-event.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.healthcheck.event.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.healthcheck.event.log.retain.count:-7}"/> </RollingFile> <RollingFile name="POLARIS_LOSSLESS_EVENT_LOG_FILE" fileName="${sys:polaris.log.home}/polaris-lossless-event.log" filePattern="${sys:polaris.log.home}/polaris-lossless-event.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%m|%d{yyyy-MM-dd HH:mm:ss.SSS}%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.lossless.event.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.lossless.event.log.retain.count:-7}"/> </RollingFile> <RollingFile name="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE" fileName="${sys:polaris.log.home}/polaris-instance-heartbeat.log" filePattern="${sys:polaris.log.home}/polaris-instance-heartbeat.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy/> <SizeBasedTriggeringPolicy size="${sys:polaris.instance.heartbeat.log.file.size:-10MB}"/> </Policies> <DefaultRolloverStrategy max="${sys:polaris.instance.heartbeat.log.retain.count:-7}"/> </RollingFile> </Appenders> <Loggers> <Logger name="com.tencent.polaris" level="${sys:polaris.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_LOG_FILE"/> </Logger> <Logger name="polaris-update-event-async" level="${sys:polaris.update.event.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_UPDATE_EVENT_LOG_FILE"/> </Logger> <Logger name="polaris-circuitbreaker-event" level="${sys:polaris.circuitbreaker.event.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE"/> </Logger> <Logger name="polaris-healthcheck-event" level="${sys:polaris.healthcheck.event.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE"/> </Logger> <!-- <AsyncLogger name="polaris-update-event-async"--> <!-- level="${sys:polaris-update-event.log.level:-info}"--> <!-- additivity="false">--> <!-- <AppenderRef ref="POLARIS_UPDATE_EVENT_LOG_FILE"/>--> <!-- </AsyncLogger>--> <Logger name="polaris-lossless-event" level="${sys:polaris.lossless.event.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_LOSSLESS_EVENT_LOG_FILE"/> </Logger> <Logger name="polaris-instance-heartbeat" level="${sys:polaris.instance.heartbeat.log.level:-info}" additivity="false"> <AppenderRef ref="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE"/> </Logger> </Loggers> </Configuration>