Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@

<rollingPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- rollover daily and when the file reaches 10 MegaBytes -->
<fileNamePattern>${LOGS}/archived/spring-boot-logger-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- Roll over weekly and when the file reaches 10 MB, so /actuator/logfile shows up to a week.
YYYY is the week-based year: yyyy-ww would name the last days of December after week 01 of the wrong year. -->
<fileNamePattern>${LOGS}/archived/spring-boot-logger-%d{YYYY-ww}.%i.log</fileNamePattern>
<maxFileSize>10MB</maxFileSize>
<!-- maxHistory counts rollover periods (weeks here): 13 weeks is about 90 days. -->
<maxHistory>13</maxHistory>
<totalSizeCap>1GB</totalSizeCap>
</rollingPolicy>
</appender>

Expand Down
Loading