chore: logback 配置调整
This commit is contained in:
parent
ef9b232dd9
commit
e7e546aab4
|
@ -383,35 +383,6 @@
|
||||||
<appender-ref ref="bugRefAppender"/>
|
<appender-ref ref="bugRefAppender"/>
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<!-- 自定义API执行过程日志 -->
|
|
||||||
<appender name="apiRunLogAppender"
|
|
||||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
||||||
<level>INFO</level>
|
|
||||||
</filter>
|
|
||||||
<File>${logging.file.path}/ms-jmeter-run.log</File>
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<FileNamePattern>${logging.file.path}/history/ms-jmeter-run-log.%d{yyyyMMdd}-%i.log</FileNamePattern>
|
|
||||||
<maxHistory>${logger.max.history:-30}</maxHistory>
|
|
||||||
<maxFileSize>50MB</maxFileSize>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder>
|
|
||||||
<charset>UTF-8</charset>
|
|
||||||
<Pattern>%d %t %-5level %logger{36} %line - %msg%n</Pattern>
|
|
||||||
</encoder>
|
|
||||||
</appender>
|
|
||||||
<appender name="runLogAppender" class="ch.qos.logback.classic.AsyncAppender">
|
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
||||||
<level>INFO</level>
|
|
||||||
</filter>
|
|
||||||
<queueSize>10000</queueSize>
|
|
||||||
<appender-ref ref="apiRunLogAppender"/>
|
|
||||||
</appender>
|
|
||||||
<logger name="ms-jmeter-run-log" additivity="false" level="${logger.level:INFO}">
|
|
||||||
<appender-ref ref="runLogAppender"/>
|
|
||||||
</logger>
|
|
||||||
|
|
||||||
|
|
||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
<appender-ref ref="infoAsyncAppender"/>
|
<appender-ref ref="infoAsyncAppender"/>
|
||||||
<appender-ref ref="console"/>
|
<appender-ref ref="console"/>
|
||||||
|
@ -454,7 +425,7 @@
|
||||||
<appender-ref ref="console"/>
|
<appender-ref ref="console"/>
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<logger name="io.metersphere.ApiApplication" additivity="false" level="${logger.level:INFO}">
|
<logger name="io.metersphere.Application" additivity="false" level="${logger.level:INFO}">
|
||||||
<appender-ref ref="infoAsyncAppender"/>
|
<appender-ref ref="infoAsyncAppender"/>
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue