mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 14:17:34 +00:00
feat: 为日志回滚启用 Gzip 压缩.
通过启用 Gzip 压缩, 可减轻日志文件对存储的压力.
This commit is contained in:
parent
8c51bac6be
commit
652dabedef
@ -79,7 +79,7 @@
|
||||
<pattern>[%d{HH:mm:ss.SSS} %5level][Script][%logger]: %msg%n</pattern>
|
||||
</encoder>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>./logs/run-script-%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<fileNamePattern>./logs/run-script-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
</appender>
|
||||
|
Loading…
Reference in New Issue
Block a user