From 7c39bb3110b03df13b896ed6950e10bfd3482281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Barto=C5=A1?= Date: Tue, 23 Jul 2024 11:32:15 +0200 Subject: [PATCH] Clarify allowed suffix for the log rotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #42068 Signed-off-by: Martin Bartoš --- .../src/main/java/io/quarkus/runtime/logging/FileConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java index 69152905f18cf..1ba1be87d240a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java @@ -2,6 +2,7 @@ import java.io.File; import java.nio.charset.Charset; +import java.time.format.DateTimeFormatter; import java.util.Optional; import java.util.logging.Level; @@ -84,6 +85,8 @@ public static class RotationConfig { * The file handler rotation file suffix. * When used, the file will be rotated based on its suffix. *

+ * The suffix must be in a date-time format that is understood by {@link DateTimeFormatter}. + *

* Example fileSuffix: .yyyy-MM-dd *

* Note: If the suffix ends with .zip or .gz, the rotation file will also be compressed.