| <?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> |
| <property name="LOG_PATH" value="target/logs"/> |
| <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEERROR"> |
| <file>${LOG_PATH}/log_error.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| <fileNamePattern>${LOG_PATH}/log-error.%i.log</fileNamePattern> |
| <minIndex>1</minIndex> |
| <maxIndex>10</maxIndex> |
| </rollingPolicy> |
| <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| <maxFileSize>10MB</maxFileSize> |
| </triggeringPolicy> |
| <append>true</append> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%-5p [%d] %C:%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>${LOG_PATH}/log_warn.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| <fileNamePattern>${LOG_PATH}/log-warn.%i.log</fileNamePattern> |
| <minIndex>1</minIndex> |
| <maxIndex>10</maxIndex> |
| </rollingPolicy> |
| <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| <maxFileSize>10MB</maxFileSize> |
| </triggeringPolicy> |
| <append>true</append> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%-5p [%d] %C:%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="FILEINFO"> |
| <file>${LOG_PATH}/log_info.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| <fileNamePattern>${LOG_PATH}/log-info.%i.log</fileNamePattern> |
| <minIndex>1</minIndex> |
| <maxIndex>10</maxIndex> |
| </rollingPolicy> |
| <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| <maxFileSize>50MB</maxFileSize> |
| </triggeringPolicy> |
| <append>true</append> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%-5p [%d] %C:%L - %m %n</pattern> |
| <charset>utf-8</charset> |
| </encoder> |
| <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| <level>INFO</level> |
| <onMatch>ACCEPT</onMatch> |
| <onMismatch>DENY</onMismatch> |
| </filter> |
| </appender> |
| <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="FILEDEBUG"> |
| <file>${LOG_PATH}/log_debug.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| <fileNamePattern>${LOG_PATH}/log-debug.%i.log</fileNamePattern> |
| <minIndex>1</minIndex> |
| <maxIndex>10</maxIndex> |
| </rollingPolicy> |
| <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| <maxFileSize>50MB</maxFileSize> |
| </triggeringPolicy> |
| <append>true</append> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%-5p [%d] %C:%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>%-5p [%d] [%thread] %C:%L - %m %n</pattern> |
| <charset>utf-8</charset> |
| </encoder> |
| <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| <level>DEBUG</level> |
| </filter> |
| </appender> |
| <!--<logger name="org.apache.tsfile.write.chunk.ChunkWriterImpl level="debug" />--> |
| <root level="ERROR"> |
| <appender-ref ref="FILEERROR"/> |
| </root> |
| </configuration> |