olaris.polaris-all.1.15.5.source-code.polaris-log4j.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"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> <appender name="POLARIS_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5p] [method:%l]%n%m%n%n"/> </layout> </appender> <appender name="POLARIS_UPDATE_EVENT_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris-update-event.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5p] [method:%l]%n%m%n%n"/> </layout> </appender> <appender name="POLARIS_UPDATE_EVENT_LOG_FILE_ASYNC" class="org.apache.log4j.AsyncAppender"> <param name="BufferSize" value="512"/> <param name="Blocking" value="false"/> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE"/> </appender> <appender name="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris-circuitbreaker-event.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5p] [method:%l]%n%m%n%n"/> </layout> </appender> <appender name="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris-healthcheck-event.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5p] [method:%l]%n%m%n%n"/> </layout> </appender> <appender name="POLARIS_LOSSLESS_EVENT_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris-lossless-event.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%m|[%d{yyyy-MM-dd HH:mm:ss:SSS}]%n"/> </layout> </appender> <appender name="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${polaris.log.home}/polaris-instance-heartbeat.log"/> <param name="Append" value="true"/> <param name="MaxBackupIndex" value="10"/> <param name="MaxFileSize" value="10MB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%m|[%d{yyyy-MM-dd HH:mm:ss:SSS}]%n"/> </layout> </appender> <logger name="com.tencent.polaris" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_LOG_FILE"/> </logger> <logger name="polaris-update-event" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE"/> </logger> <logger name="polaris-update-event-async" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_UPDATE_EVENT_LOG_FILE_ASYNC"/> </logger> <logger name="polaris-circuitbreaker-event" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_CIRCUIT_BREAKER_EVENT_LOG_FILE"/> </logger> <logger name="polaris-healthcheck-event" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_HEALTH_CHECK_EVENT_LOG_FILE"/> </logger> <logger name="polaris-lossless-event" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_LOSSLESS_EVENT_LOG_FILE"/> </logger> <logger name="polaris-instance-heartbeat" additivity="false"> <level value="INFO"/> <appender-ref ref="POLARIS_INSTANCE_HEARTBEAT_LOG_FILE"/> </logger> </log4j:configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy