...
|
...
|
@@ -33,11 +33,15 @@ |
|
|
<!-- DEBUG、INFO、WARN、ERROR级别日志 appender -->
|
|
|
<appender name="DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
<file>/Data/logs/yoho-datasync-producer/debug.log</file>
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<!-- daily rollover -->
|
|
|
<fileNamePattern>/Data/logs/yoho-datasync-producer/archived/debug.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- or whenever the file size reaches 100MB -->
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
<!-- keep 30 days' worth of history -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</rollingPolicy>
|
|
|
<encoder>
|
|
|
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern>
|
...
|
...
|
@@ -53,12 +57,15 @@ |
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
|
<level>INFO</level>
|
|
|
</filter>
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- 按天回滚 daily -->
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<!-- daily rollover -->
|
|
|
<fileNamePattern>/Data/logs/yoho-datasync-producer/archived/info.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
|
<!-- 日志最大的保存天数 -->
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- or whenever the file size reaches 100MB -->
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
<!-- keep 30 days' worth of history -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</rollingPolicy>
|
|
|
<encoder>
|
|
|
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern>
|
...
|
...
|
@@ -74,12 +81,15 @@ |
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
|
<level>WARN</level>
|
|
|
</filter>
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- 按天回滚 daily -->
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<!-- daily rollover -->
|
|
|
<fileNamePattern>/Data/logs/yoho-datasync-producer/archived/warn.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
|
<!-- 日志最大的保存天数 -->
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- or whenever the file size reaches 100MB -->
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
<!-- keep 30 days' worth of history -->
|
|
|
<maxHistory>${maxHistory}</maxHistory>
|
|
|
<maxFileSize>${maxFileSize}</maxFileSize>
|
|
|
</rollingPolicy>
|
|
|
<encoder>
|
|
|
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern>
|
...
|
...
|
|