olaris.polaris-all.1.15.5.source-code.polaris-logback.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 debug="false" scan="true" scanPeriod="30 seconds" packagingData="true"> <contextName>polaris</contextName> <appender name="POLARIS_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris.log.%i</fileNamePattern> <maxIndex>${polaris.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <appender name="POLARIS_UPDATE_EVENT_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris-update-event.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris-update-event.log.%i</fileNamePattern> <maxIndex>${polaris.update.event.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.update.event.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <appender name="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris-circuitbreaker-event.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris-circuitbreaker-event.log.%i </fileNamePattern> <maxIndex>${polaris.circuitbreaker.event.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.circuitbreaker.event.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <appender name="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris-healthcheck-event.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris-healthcheck-event.log.%i </fileNamePattern> <maxIndex>${polaris.healthcheck.event.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.healthcheck.event.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <appender name="POLARIS_LOSSLESS_EVENT_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris-lossless-event.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris-lossless-event.log.%i </fileNamePattern> <maxIndex>${polaris.lossless.event.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.lossless.event.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%m|%d{yyyy-MM-dd HH:mm:ss.SSS}%n</pattern> </encoder> </appender> <appender name="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${polaris.log.home}/polaris-instance-heartbeat.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${polaris.log.home}/polaris-instance-heartbeat.log.%i </fileNamePattern> <maxIndex>${polaris.instance.heartbeat.log.retain.count:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${polaris.instance.heartbeat.log.file.size:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%m|%d{yyyy-MM-dd HH:mm:ss.SSS}%n</pattern> </encoder> </appender> <appender name="POLARIS_UPDATE_EVENT_LOG_FILE_ASYNC" class="ch.qos.logback.classic.AsyncAppender"> <discardingThreshold>0</discardingThreshold> <queueSize>512</queueSize> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE"/> </appender> <logger name="com.tencent.polaris" level="${polaris.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_LOG_FILE"/> </logger> <logger name="polaris-update-event" level="${polaris.update.event.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE"/> </logger> <logger name="polaris-update-event-async" level="${polaris.update.event.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE_ASYNC"/> </logger> <logger name="polaris-circuitbreaker-event" level="${polaris.circuitbreaker.event.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE"/> </logger> <logger name="polaris-healthcheck-event" level="${polaris.healthcheck.event.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE"/> </logger> <logger name="polaris-lossless-event" level="${polaris.lossless.event.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_LOSSLESS_EVENT_LOG_FILE"/> </logger> <logger name="polaris-instance-heartbeat" level="${polaris.instance.heartbeat.log.level:-info}" additivity="false"> <appender-ref ref="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE"/> </logger> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy