chore(logging): enable gzipped log rotation and adjust test logging (#7648)

This commit is contained in:
Ludy
2026-08-27 18:41:40 +01:00
committed by GitHub
parent d4b1862654
commit be13028209
3 changed files with 8 additions and 5 deletions
+1
View File
@@ -106,6 +106,7 @@ SwaggerDoc.json
# Log file # Log file
*.log *.log
*.log.gz
# BlueJ files # BlueJ files
*.ctxt *.ctxt
+6 -4
View File
@@ -16,8 +16,9 @@
<pattern>%d %p %c{1} [%thread] %m%n</pattern> <pattern>%d %p %c{1} [%thread] %m%n</pattern>
</encoder> </encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/auth-%d{yyyy-MM-dd}.log</fileNamePattern> <fileNamePattern>${LOG_PATH}/auth-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>1</maxHistory> <maxHistory>7</maxHistory>
<totalSizeCap>64MB</totalSizeCap>
</rollingPolicy> </rollingPolicy>
</appender> </appender>
@@ -28,8 +29,9 @@
<pattern>%d %p %c{1} [%thread] %m%n</pattern> <pattern>%d %p %c{1} [%thread] %m%n</pattern>
</encoder> </encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/info-%d{yyyy-MM-dd}.log</fileNamePattern> <fileNamePattern>${LOG_PATH}/info-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
<maxHistory>1</maxHistory> <maxHistory>7</maxHistory>
<totalSizeCap>256MB</totalSizeCap>
</rollingPolicy> </rollingPolicy>
</appender> </appender>
+1 -1
View File
@@ -306,7 +306,7 @@ subprojects {
systemProperty 'apple.awt.UIElement', 'true' systemProperty 'apple.awt.UIElement', 'true'
testLogging { testLogging {
events "started", "failed" events "skipped", "failed"
showExceptions = true showExceptions = true
showCauses = true showCauses = true
showStackTraces = true showStackTraces = true