Sfoglia il codice sorgente

20220415_logback加压缩

mashengyi 3 anni fa
parent
commit
f3b470f101
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/main/resources/logback-spring.xml

+ 1 - 1
src/main/resources/logback-spring.xml

@@ -21,7 +21,7 @@
         <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
             <!-- 活动文件的名字会根据fileNamePattern的值,每隔一段时间改变一次 -->
             <!-- 文件名:log/sys.2017-12-05.0.log -->
-            <fileNamePattern>${log.path}/logs/system.log.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
+            <fileNamePattern>${log.path}/logs/system.log.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
             <!-- 每产生一个日志文件,该日志文件的保存期限为30天 -->
             <maxHistory>30</maxHistory>
             <maxFileSize>1000MB</maxFileSize>