This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new d450261 [test] regression framework use RollingFileAppender by
default (#8654)
d450261 is described below
commit d45026171d8110a26e0ccf58b173f317a6c11fef
Author: dataroaring <[email protected]>
AuthorDate: Mon Mar 28 10:25:34 2022 +0800
[test] regression framework use RollingFileAppender by default (#8654)
---
regression-test/conf/logback.xml | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/regression-test/conf/logback.xml b/regression-test/conf/logback.xml
index 2bae4b5..1fb1eb0 100644
--- a/regression-test/conf/logback.xml
+++ b/regression-test/conf/logback.xml
@@ -26,18 +26,26 @@ under the License.
</encoder>
</appender>
- <appender name="fileAppender" class="ch.qos.logback.core.FileAppender">
+ <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>
- <encoder>
+ <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="fileAppender" />
+ <appender-ref ref="rollingFileAppender" />
</root>
</configuration>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]