Authored by zhouxiang

日志压缩

@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/debug-log.log</file> 13 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/debug-log.log</file>
14 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 14 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
15 <!-- daily rollover --> 15 <!-- daily rollover -->
16 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/debug/debug.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 16 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/debug/debug.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
17 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 17 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
18 <!-- or whenever the file size reaches 100MB --> 18 <!-- or whenever the file size reaches 100MB -->
19 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 19 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 </filter> 35 </filter>
36 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 36 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
37 <!-- daily rollover --> 37 <!-- daily rollover -->
38 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/warn/warn.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 38 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/warn/warn.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
39 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 39 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
40 <!-- or whenever the file size reaches 100MB --> 40 <!-- or whenever the file size reaches 100MB -->
41 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 41 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-timeout.log</file> 53 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-timeout.log</file>
54 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 54 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
55 <!-- daily rollover --> 55 <!-- daily rollover -->
56 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-timeout/request-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 56 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-timeout/request-timeout.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
57 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 57 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
58 <!-- or whenever the file size reaches 100MB --> 58 <!-- or whenever the file size reaches 100MB -->
59 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 59 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -71,7 +71,7 @@ @@ -71,7 +71,7 @@
71 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/database-timeout.log</file> 71 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/database-timeout.log</file>
72 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 72 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
73 <!-- daily rollover --> 73 <!-- daily rollover -->
74 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/database-timeout/database-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 74 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/database-timeout/database-timeout.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
75 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 75 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
76 <!-- or whenever the file size reaches 100MB --> 76 <!-- or whenever the file size reaches 100MB -->
77 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 77 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -89,7 +89,7 @@ @@ -89,7 +89,7 @@
89 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-stat.log</file> 89 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/request-stat.log</file>
90 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 90 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
91 <!-- daily rollover --> 91 <!-- daily rollover -->
92 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-stat/request-stat.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 92 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/request-stat/request-stat.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
93 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 93 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
94 <!-- or whenever the file size reaches 100MB --> 94 <!-- or whenever the file size reaches 100MB -->
95 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 95 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -107,7 +107,7 @@ @@ -107,7 +107,7 @@
107 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ADD_DINGDANG.log</file> 107 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ADD_DINGDANG.log</file>
108 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 108 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
109 <!-- daily rollover --> 109 <!-- daily rollover -->
110 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ADD_DINGDANG/ADD_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 110 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ADD_DINGDANG/ADD_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
111 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 111 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
112 <!-- or whenever the file size reaches 100MB --> 112 <!-- or whenever the file size reaches 100MB -->
113 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 113 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -125,7 +125,7 @@ @@ -125,7 +125,7 @@
125 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_DINGDANG.log</file> 125 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_DINGDANG.log</file>
126 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 126 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
127 <!-- daily rollover --> 127 <!-- daily rollover -->
128 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 128 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
129 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 129 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
130 <!-- or whenever the file size reaches 100MB --> 130 <!-- or whenever the file size reaches 100MB -->
131 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 131 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
142 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/BIG_DATA.log</file> 142 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/BIG_DATA.log</file>
143 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 143 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
144 <!-- daily rollover --> 144 <!-- daily rollover -->
145 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 145 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_DINGDANG/ACTIVE_DINGDANG.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
146 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 146 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
147 <!-- or whenever the file size reaches 100MB --> 147 <!-- or whenever the file size reaches 100MB -->
148 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 148 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -160,7 +160,7 @@ @@ -160,7 +160,7 @@
160 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/CLICK_UNION.log</file> 160 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/CLICK_UNION.log</file>
161 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 161 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
162 <!-- daily rollover --> 162 <!-- daily rollover -->
163 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/CLICK_UNION/CLICK_UNION.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 163 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/CLICK_UNION/CLICK_UNION.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
164 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 164 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
165 <!-- or whenever the file size reaches 100MB --> 165 <!-- or whenever the file size reaches 100MB -->
166 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 166 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -178,7 +178,7 @@ @@ -178,7 +178,7 @@
178 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_UNION.log</file> 178 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/ACTIVE_UNION.log</file>
179 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 179 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
180 <!-- daily rollover --> 180 <!-- daily rollover -->
181 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_UNION/ACTIVE_UNION.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 181 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/ACTIVE_UNION/ACTIVE_UNION.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
182 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 182 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
183 <!-- or whenever the file size reaches 100MB --> 183 <!-- or whenever the file size reaches 100MB -->
184 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 184 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
@@ -195,7 +195,7 @@ @@ -195,7 +195,7 @@
195 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/IP_MATCH.log</file> 195 <file>${yoho.logs.basedir}/${yoho.unions.env.namespace}/IP_MATCH.log</file>
196 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> 196 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
197 <!-- daily rollover --> 197 <!-- daily rollover -->
198 - <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/IP_MATCH/IP_MATCH.%d{yyyy-MM-dd}.%i.log</fileNamePattern> 198 + <fileNamePattern>${yoho.logs.basedir}/${yoho.unions.env.namespace}/archived/IP_MATCH/IP_MATCH.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
199 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> 199 <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
200 <!-- or whenever the file size reaches 100MB --> 200 <!-- or whenever the file size reaches 100MB -->
201 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize> 201 <maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>