Authored by zhouxiang

日志压缩

... ... @@ -13,7 +13,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/debug-log.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/debug/debug.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/debug/debug.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -35,7 +35,7 @@
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/warn/warn.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/warn/warn.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -53,7 +53,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-timeout.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-timeout/request-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-timeout/request-timeout.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -71,7 +71,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/database-timeout.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/database-timeout/database-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/database-timeout/database-timeout.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -89,7 +89,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-stat.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-stat/request-stat.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-stat/request-stat.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -107,7 +107,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ADD_DINGDANG.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ADD_DINGDANG/ADD_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ADD_DINGDANG/ADD_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -125,7 +125,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_DINGDANG.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -142,7 +142,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/BIG_DATA.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -160,7 +160,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/CLICK_UNION.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/CLICK_UNION/CLICK_UNION.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/CLICK_UNION/CLICK_UNION.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -178,7 +178,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_UNION.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_UNION/ACTIVE_UNION.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_UNION/ACTIVE_UNION.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -195,7 +195,7 @@
<file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/IP_MATCH.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/IP_MATCH/IP_MATCH.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/IP_MATCH/IP_MATCH.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ...