113 lines
5.2 KiB
XML
113 lines
5.2 KiB
XML
![]() |
<?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 scan="true" scanPeriod="60 seconds">
|
||
|
<jmxConfigurator/>
|
||
|
<!-- prevent logback from outputting its own status at the start of every log -->
|
||
|
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
|
||
|
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEERROR">
|
||
|
<file>${CONFIGNODE_HOME}/logs/log_confignode_error.log</file>
|
||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||
|
<fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-error-%d{yyyyMMdd}.log.gz</fileNamePattern>
|
||
|
<maxHistory>30</maxHistory>
|
||
|
</rollingPolicy>
|
||
|
<append>true</append>
|
||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||
|
<pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
|
||
|
<charset>utf-8</charset>
|
||
|
</encoder>
|
||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||
|
<level>error</level>
|
||
|
<onMatch>ACCEPT</onMatch>
|
||
|
<onMismatch>DENY</onMismatch>
|
||
|
</filter>
|
||
|
</appender>
|
||
|
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEWARN">
|
||
|
<file>${CONFIGNODE_HOME}/logs/log_confignode_warn.log</file>
|
||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||
|
<fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-warn-%d{yyyyMMdd}.log.gz</fileNamePattern>
|
||
|
<maxHistory>30</maxHistory>
|
||
|
</rollingPolicy>
|
||
|
<append>true</append>
|
||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||
|
<pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
|
||
|
<charset>utf-8</charset>
|
||
|
</encoder>
|
||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||
|
<level>WARN</level>
|
||
|
<onMatch>ACCEPT</onMatch>
|
||
|
<onMismatch>DENY</onMismatch>
|
||
|
</filter>
|
||
|
</appender>
|
||
|
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEDEBUG">
|
||
|
<file>${CONFIGNODE_HOME}/logs/log_confignode_debug.log</file>
|
||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||
|
<fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-debug-%d{yyyyMMdd}.log.gz</fileNamePattern>
|
||
|
<maxHistory>30</maxHistory>
|
||
|
</rollingPolicy>
|
||
|
<append>true</append>
|
||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||
|
<pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
|
||
|
<charset>utf-8</charset>
|
||
|
</encoder>
|
||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||
|
<level>DEBUG</level>
|
||
|
<onMatch>ACCEPT</onMatch>
|
||
|
<onMismatch>DENY</onMismatch>
|
||
|
</filter>
|
||
|
</appender>
|
||
|
<appender class="ch.qos.logback.core.ConsoleAppender" name="stdout">
|
||
|
<Target>System.out</Target>
|
||
|
<encoder>
|
||
|
<pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
|
||
|
<charset>utf-8</charset>
|
||
|
</encoder>
|
||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
|
<level>${CONSOLE_LOG_LEVEL:-DEBUG}</level>
|
||
|
</filter>
|
||
|
</appender>
|
||
|
<!-- a log appender that collect all log records whose level is greater than debug-->
|
||
|
<appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEALL">
|
||
|
<file>${CONFIGNODE_HOME}/logs/log_confignode_all.log</file>
|
||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||
|
<fileNamePattern>${CONFIGNODE_HOME}/logs/log-confignode-all-%d{yyyyMMdd}.log.gz</fileNamePattern>
|
||
|
<maxHistory>30</maxHistory>
|
||
|
</rollingPolicy>
|
||
|
<append>true</append>
|
||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||
|
<pattern>%d [%t] %-5p %C{25}:%L - %m %n</pattern>
|
||
|
<charset>utf-8</charset>
|
||
|
</encoder>
|
||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
|
<level>INFO</level>
|
||
|
</filter>
|
||
|
</appender>
|
||
|
<root level="info">
|
||
|
<appender-ref ref="FILEDEBUG"/>
|
||
|
<appender-ref ref="FILEWARN"/>
|
||
|
<appender-ref ref="FILEERROR"/>
|
||
|
<appender-ref ref="FILEALL"/>
|
||
|
<appender-ref ref="stdout"/>
|
||
|
</root>
|
||
|
<logger level="info" name="org.apache.iotdb.confignode"/>
|
||
|
<logger level="info" name="org.apache.ratis"/>
|
||
|
</configuration>
|