mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
chore(logging): enable gzipped log rotation and adjust test logging (#7648)
This commit is contained in:
@@ -106,6 +106,7 @@ SwaggerDoc.json
|
|||||||
|
|
||||||
# Log file
|
# Log file
|
||||||
*.log
|
*.log
|
||||||
|
*.log.gz
|
||||||
|
|
||||||
# BlueJ files
|
# BlueJ files
|
||||||
*.ctxt
|
*.ctxt
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user