chore: 多模块log合并
This commit is contained in:
parent
6662f3df00
commit
948124c762
|
@ -125,264 +125,6 @@
|
|||
<appender-ref ref="warnAppender"/>
|
||||
</appender>
|
||||
|
||||
<!-- 自定义api-test模块日志 -->
|
||||
<appender name="apiAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/api-test.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/api-test.%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="apiTestAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="apiAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.api" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="apiTestAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 自定义load-test模块日志 -->
|
||||
<appender name="loadAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/load-test.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/load-test.%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="loadTestAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="loadAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.load" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="loadTestAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 自定义project-management模块日志 -->
|
||||
<appender name="projectAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/project.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/project.%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="projectManagementAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="projectAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.project" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="projectManagementAppender"/>
|
||||
</logger>
|
||||
|
||||
|
||||
<!-- 自定义system-setting模块日志 -->
|
||||
<appender name="systemAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/system-setting.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/system-setting.%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="systemSettingAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="systemAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.system" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="systemSettingAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 自定义test-plan模块日志 -->
|
||||
<appender name="testPlanAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/test-plan.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/test-plan.%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="testPlanRefAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="testPlanAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.plan" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="testPlanRefAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 自定义case-management模块日志 -->
|
||||
<appender name="testTrackAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/case-management.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/case-management.%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="testTrackRefAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="testTrackAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.track" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="testTrackRefAppender"/>
|
||||
</logger>
|
||||
|
||||
|
||||
<!-- 自定义ui-test模块日志 -->
|
||||
<appender name="uiTestAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/ui-test.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/ui-test.%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="uiTestRefAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="uiTestAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.ui" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="uiTestRefAppender"/>
|
||||
</logger>
|
||||
|
||||
|
||||
<!-- 自定义workstation模块日志 -->
|
||||
<appender name="workstationAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/workstation.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/workstation.%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="workstationRefAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="workstationAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.workstation" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="workstationRefAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 自定义bug模块日志 -->
|
||||
<appender name="bugAppender"
|
||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<File>${logging.file.path}/bug.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<FileNamePattern>${logging.file.path}/history/bug.%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="bugRefAppender" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
<queueSize>10000</queueSize>
|
||||
<appender-ref ref="bugAppender"/>
|
||||
</appender>
|
||||
<logger name="io.metersphere.bug" additivity="false" level="${logger.level:INFO}">
|
||||
<appender-ref ref="bugRefAppender"/>
|
||||
</logger>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="infoAsyncAppender"/>
|
||||
<appender-ref ref="console"/>
|
||||
|
@ -393,6 +135,7 @@
|
|||
<appender-ref ref="warnAsyncAppender"/>
|
||||
<appender-ref ref="errorAsyncAppender"/>
|
||||
</logger>
|
||||
|
||||
<!-- 包名不支持通配符 * ,这里需要每个模块固定好mapper -->
|
||||
<logger name="io.metersphere.sdk.mapper" level="${logger.sql.level}">
|
||||
<appender-ref ref="console"/>
|
||||
|
|
Loading…
Reference in New Issue