Skip to content

Commit

Permalink
logback: use SizeAndTimeBasedRollingPolicy
Browse files Browse the repository at this point in the history
SizeAndTimeBasedFNATP is deprecated and causes a warning to be logged at startup
  • Loading branch information
Adam- committed Nov 23, 2021
1 parent 8760471 commit dc49bfa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions runelite-client/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,10 @@
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/.runelite/logs/client.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${user.home}/.runelite/logs/client_%d{yyyy-MM-dd}.%i.log</fileNamePattern>

<!-- when file size is larger than defined, roll to new file -->
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>

<maxFileSize>10MB</maxFileSize>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>
Expand Down

0 comments on commit dc49bfa

Please sign in to comment.