| <?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" debug="false"> |
| <timestamp key="LOG_TIME" datePattern="yyyyMMdd.HHmmss"/> |
| |
| <appender name="stdoutAppender" class="ch.qos.logback.core.ConsoleAppender"> |
| <if condition='property("stdoutAppenderType").equalsIgnoreCase("teamcity")'> |
| <then> |
| <encoder class="org.apache.doris.regression.logger.TeamcityServiceMessageEncoder"> |
| <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %level [%thread] \(%F:%L\) - %msg%n</pattern> |
| </encoder> |
| </then> |
| <else> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %level [%thread] \(%F:%L\) - %msg%n</pattern> |
| </encoder> |
| </else> |
| </if> |
| </appender> |
| |
| <appender name="rollingFileAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| <!-- you can specify LOG_PATH by 'java -DLOG_PATH=xxx ...', |
| default LOG_PATH is './log' |
| --> |
| <file>${LOG_PATH:-./log}/doris-regression-test.${LOG_TIME}.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| <fileNamePattern>${LOG_PATH:-./log}/doris-regression-test.%i.log.zip</fileNamePattern> |
| <minIndex>1</minIndex> |
| <maxIndex>3</maxIndex> |
| </rollingPolicy> |
| <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| <maxFileSize>500MB</maxFileSize> |
| </triggeringPolicy> |
| <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
| <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %level [%thread] \(%F:%L\) - %msg%n</pattern> |
| </encoder> |
| </appender> |
| |
| <root level="INFO"> |
| <appender-ref ref="stdoutAppender" /> |
| <appender-ref ref="rollingFileAppender" /> |
| </root> |
| </configuration> |