From 582a3b472d993fa453e672a0c747667413c77fd4 Mon Sep 17 00:00:00 2001 From: Girish Kulkarni Date: Wed, 25 Dec 2019 01:22:36 +0530 Subject: [PATCH 1/2] Fix file rotation documentation according to maxHistory new default See gh-19458 --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 29e578bb6d..baad26fb19 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1634,7 +1634,7 @@ The following table shows how the `logging.*` properties can be used together: Log files rotate when they reach 10 MB and, as with console output, `ERROR`-level, `WARN`-level, and `INFO`-level messages are logged by default. Size limits can be changed using the configprop:logging.file.max-size[] property. -Previously rotated files are archived indefinitely unless the configprop:logging.file.max-history[] property has been set. +Last 7 previously rotated log files are kept by default unless the configprop:logging.file.max-history[] property has been set. The total size of log archives can be capped using configprop:logging.file.total-size-cap[]. When the total size of log archives exceeds that threshold, backups will be deleted. To force log archive cleanup on application startup, use the configprop:logging.file.clean-history-on-start[] property. From 4969ecc59a947a1d937b7e71aa55021df92e014f Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 25 Dec 2019 08:31:39 +0100 Subject: [PATCH 2/2] Polish contribution See gh-19458 --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index baad26fb19..05effcc599 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1634,7 +1634,7 @@ The following table shows how the `logging.*` properties can be used together: Log files rotate when they reach 10 MB and, as with console output, `ERROR`-level, `WARN`-level, and `INFO`-level messages are logged by default. Size limits can be changed using the configprop:logging.file.max-size[] property. -Last 7 previously rotated log files are kept by default unless the configprop:logging.file.max-history[] property has been set. +Rotated log files of the last 7 days are kept by default unless the configprop:logging.file.max-history[] property has been set. The total size of log archives can be capped using configprop:logging.file.total-size-cap[]. When the total size of log archives exceeds that threshold, backups will be deleted. To force log archive cleanup on application startup, use the configprop:logging.file.clean-history-on-start[] property.