sofa-thread.log.logback.log-conf.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="WARN-APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender"> <append>true</append> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>WARN</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <file>${logging.path}/sofa-thread/aberrant-digest.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>${logging.path}/sofa-thread/aberrant-digest.log.%d{yyyy-MM-dd}</FileNamePattern> <MaxHistory>30</MaxHistory> </rollingPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d %-5p %-5t - %m%n</pattern> <charset>${file.encoding}</charset> </encoder> </appender> <appender name="SOFA-APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender"> <append>true</append> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>${logging.level.sofa-thread}</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <file>${logging.path}/sofa-thread/thread-digest.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>${logging.path}/sofa-thread/thread-digest.log.%d{yyyy-MM-dd}</FileNamePattern> <MaxHistory>30</MaxHistory> </rollingPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d %-5p %-5t - %m%n</pattern> <charset>${file.encoding}</charset> </encoder> </appender> <logger name="com.alipay.sofa.thread" level="${logging.level.sofa-thread}" additivity="false"> <appender-ref ref="SOFA-APPENDER"/> </logger> <logger name="com.alipay.sofa.thread.warn" level="WARN" additivity="false"> <appender-ref ref="WARN-APPENDER"/> </logger> <root level="${logging.level.sofa-thread}"> <appender-ref ref="SOFA-APPENDER"/> <appender-ref ref="WARN-APPENDER"/> </root> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy