Skip to content

Commit

Permalink
fix: resolve log rotation (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras authored Oct 25, 2024
1 parent 540b847 commit 0417801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>fr.insee.pearljam</groupId>
<artifactId>pearljam-back-office</artifactId>
<version>5.1.8</version>
<version>5.1.9</version>
<name>Pearl-Jam-Back-Office</name>
<description>Back-office services for PearlJam</description>

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configuration debug="true">
<conversionRule conversionWord="htmlEncode" converterClass="fr.insee.pearljam.api.configuration.log.LogbackAvoidLogForgeryContentEncoder" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
Expand All @@ -12,7 +12,7 @@
<file>${LOG_FILE}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>%d{yyyy-MM-dd}.${LOG_FILE}.gz</fileNamePattern>
<fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY}</maxHistory>
</rollingPolicy>

Expand Down

0 comments on commit 0417801

Please sign in to comment.