提交 49261873 编写于 作者: S shutian.lzh

Compress on rolling

上级 cba30897
...@@ -22,13 +22,11 @@ ...@@ -22,13 +22,11 @@
<file>${user.home}/logs/rocketmqlogs/broker_default.log</file> <file>${user.home}/logs/rocketmqlogs/broker_default.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/broker_default.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/broker_default.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -42,13 +40,11 @@ ...@@ -42,13 +40,11 @@
<file>${user.home}/logs/rocketmqlogs/broker.log</file> <file>${user.home}/logs/rocketmqlogs/broker.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/broker.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/broker.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>20</maxIndex> <maxIndex>20</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>128MB</maxFileSize> <maxFileSize>128MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -65,13 +61,11 @@ ...@@ -65,13 +61,11 @@
<file>${user.home}/logs/rocketmqlogs/protection.log</file> <file>${user.home}/logs/rocketmqlogs/protection.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/protection.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/protection.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -88,13 +82,11 @@ ...@@ -88,13 +82,11 @@
<file>${user.home}/logs/rocketmqlogs/watermark.log</file> <file>${user.home}/logs/rocketmqlogs/watermark.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/watermark.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/watermark.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -111,13 +103,11 @@ ...@@ -111,13 +103,11 @@
<file>${user.home}/logs/rocketmqlogs/store.log</file> <file>${user.home}/logs/rocketmqlogs/store.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/store.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/store.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>128MB</maxFileSize> <maxFileSize>128MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -134,13 +124,11 @@ ...@@ -134,13 +124,11 @@
<file>${user.home}/logs/rocketmqlogs/remoting.log</file> <file>${user.home}/logs/rocketmqlogs/remoting.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/remoting.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/remoting.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -157,13 +145,11 @@ ...@@ -157,13 +145,11 @@
<file>${user.home}/logs/rocketmqlogs/storeerror.log</file> <file>${user.home}/logs/rocketmqlogs/storeerror.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/storeerror.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/storeerror.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -181,13 +167,11 @@ ...@@ -181,13 +167,11 @@
<file>${user.home}/logs/rocketmqlogs/transaction.log</file> <file>${user.home}/logs/rocketmqlogs/transaction.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/transaction.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/transaction.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -204,13 +188,11 @@ ...@@ -204,13 +188,11 @@
<file>${user.home}/logs/rocketmqlogs/lock.log</file> <file>${user.home}/logs/rocketmqlogs/lock.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/lock.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/lock.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -227,13 +209,11 @@ ...@@ -227,13 +209,11 @@
<file>${user.home}/logs/rocketmqlogs/filter.log</file> <file>${user.home}/logs/rocketmqlogs/filter.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filter.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filter.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -250,13 +230,11 @@ ...@@ -250,13 +230,11 @@
<file>${user.home}/logs/rocketmqlogs/stats.log</file> <file>${user.home}/logs/rocketmqlogs/stats.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/stats.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/stats.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -270,13 +248,11 @@ ...@@ -270,13 +248,11 @@
<file>${user.home}/logs/rocketmqlogs/commercial.log</file> <file>${user.home}/logs/rocketmqlogs/commercial.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/commercial.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/commercial.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>10</maxIndex> <maxIndex>10</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>500MB</maxFileSize> <maxFileSize>500MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
</appender> </appender>
......
...@@ -22,13 +22,11 @@ ...@@ -22,13 +22,11 @@
<file>${user.home}/logs/rocketmqlogs/filtersrv_default.log</file> <file>${user.home}/logs/rocketmqlogs/filtersrv_default.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filtersrv_default.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filtersrv_default.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -42,13 +40,11 @@ ...@@ -42,13 +40,11 @@
<file>${user.home}/logs/rocketmqlogs/filtersrv.log</file> <file>${user.home}/logs/rocketmqlogs/filtersrv.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filtersrv.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/filtersrv.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
<file>${user.home}/logs/rocketmqlogs/namesrv_default.log</file> <file>${user.home}/logs/rocketmqlogs/namesrv_default.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/namesrv_default.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/namesrv_default.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
...@@ -42,8 +41,7 @@ ...@@ -42,8 +41,7 @@
<file>${user.home}/logs/rocketmqlogs/namesrv.log</file> <file>${user.home}/logs/rocketmqlogs/namesrv.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/namesrv.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/namesrv.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
......
...@@ -22,13 +22,11 @@ ...@@ -22,13 +22,11 @@
<file>${user.home}/logs/rocketmqlogs/tools_default.log</file> <file>${user.home}/logs/rocketmqlogs/tools_default.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/tools_default.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/tools_default.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
<triggeringPolicy <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize> <maxFileSize>100MB</maxFileSize>
</triggeringPolicy> </triggeringPolicy>
<encoder> <encoder>
...@@ -42,8 +40,7 @@ ...@@ -42,8 +40,7 @@
<file>${user.home}/logs/rocketmqlogs/tools.log</file> <file>${user.home}/logs/rocketmqlogs/tools.log</file>
<append>true</append> <append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/tools.%i.log <fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/tools.%i.log.gz</fileNamePattern>
</fileNamePattern>
<minIndex>1</minIndex> <minIndex>1</minIndex>
<maxIndex>5</maxIndex> <maxIndex>5</maxIndex>
</rollingPolicy> </rollingPolicy>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册