com.alipay.sofa.ark.log.logback.log-conf.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Licensed to the Apache Software Foundation (ASF) under one or more ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ The ASF licenses this file to You under the Apache License, Version 2.0 ~ (the "License"); you may not use this file except in compliance with ~ the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <configuration> <appender name="ERROR-APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender"> <append>true</append> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>error</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <file>${logging.path}/sofa-ark/common-error.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>${logging.path}/sofa-ark/common-error.log.%d{yyyy-MM-dd}</FileNamePattern> <MaxHistory>30</MaxHistory> </rollingPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d %-5p %-32t - %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.com.alipay.sofa.ark}</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <file>${logging.path}/sofa-ark/common-default.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>${logging.path}/sofa-ark/common-default.log.%d{yyyy-MM-dd}</FileNamePattern> <MaxHistory>30</MaxHistory> </rollingPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d %-5p %-32t - %m%n</pattern> <charset>${file.encoding}</charset> </encoder> </appender> <appender name="CONFIG-APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender"> <append>true</append> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>${logging.level.com.alipay.sofa.ark}</level> <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter> <file>${logging.path}/sofa-ark/config-manage.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>${logging.path}/sofa-ark/config-manage.log.%d{yyyy-MM-dd}</FileNamePattern> <MaxHistory>30</MaxHistory> </rollingPolicy> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>%d %-5p %-32t - %m%n</pattern> <charset>${file.encoding}</charset> </encoder> </appender> <logger name="com.alipay.sofa.ark" level="${logging.level.com.alipay.sofa.ark}" additivity="false"> <appender-ref ref="SOFA-APPENDER"/> <appender-ref ref="ERROR-APPENDER"/> </logger> <logger name="com.alipay.sofa.ark.config" level="${logging.level.com.alipay.sofa.ark}" additivity="false"> <appender-ref ref="CONFIG-APPENDER"/> <appender-ref ref="ERROR-APPENDER"/> </logger> <root level="${ARK_LOG_LEVEL}"> <appender-ref ref="SOFA-APPENDER"/> <appender-ref ref="ERROR-APPENDER"/> </root> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy