Update rolling policies for log files (#4291)

This commit is contained in:
Chris Stewart 2022-04-25 10:38:54 -05:00 committed by GitHub
parent bac3cb4190
commit 17944c4aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -14,13 +14,13 @@
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${bitcoins.log.location}/bitcoin-s.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- hourly rollover -->
<fileNamePattern>${bitcoins.log.location}/logs/bitcoin-s-%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern>
<!-- monthly rollover -->
<fileNamePattern>${bitcoins.log.location}/logs/bitcoin-s-%d{yyyy/MM}.%i.log.zip</fileNamePattern>
<!-- each file should be at most 100MB, keep 2 days of history, and at most 2GB in the archive -->
<!-- each file should be at most 100MB, keep 12 months of history, and at most 5GB in the archive -->
<maxFileSize>100MB</maxFileSize>
<maxHistory>48</maxHistory>
<totalSizeCap>2GB</totalSizeCap>
<maxHistory>12</maxHistory>
<totalSizeCap>5GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%date{yyyy-MM-dd'T'HH:mm:ss,SSXXX, UTC}UTC %level [%logger{0}] %msg%n</pattern>

View file

@ -14,13 +14,13 @@
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${bitcoins.log.location}/bitcoin-s.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- hourly rollover -->
<fileNamePattern>${bitcoins.log.location}/logs/bitcoin-s-%d{yyyy-MM-dd_HH}.%i.log</fileNamePattern>
<!-- monthly rollover -->
<fileNamePattern>${bitcoins.log.location}/logs/bitcoin-s-%d{yyyy/MM}.%i.log.zip</fileNamePattern>
<!-- each file should be at most 100MB, keep 2 days of history, and at most 2GB in the archive -->
<!-- each file should be at most 100MB, keep 12 months of history, and at most 5GB in the archive -->
<maxFileSize>100MB</maxFileSize>
<maxHistory>48</maxHistory>
<totalSizeCap>2GB</totalSizeCap>
<maxHistory>12</maxHistory>
<totalSizeCap>5GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%date{yyyy-MM-dd'T'HH:mm:ss,SSXXX, UTC}UTC %level [%logger{0}] %msg%n</pattern>