Skip to content

Commit 46a907a

Browse files
mabartosgsmet
authored andcommitted
Clarify allowed suffix for the log rotation
Closes #42068 Signed-off-by: Martin Bartoš <[email protected]> (cherry picked from commit 7c39bb3)
1 parent 0f1f29e commit 46a907a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/runtime/src/main/java/io/quarkus/runtime/logging/FileConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.File;
44
import java.nio.charset.Charset;
5+
import java.time.format.DateTimeFormatter;
56
import java.util.Optional;
67
import java.util.logging.Level;
78

@@ -84,6 +85,8 @@ public static class RotationConfig {
8485
* The file handler rotation file suffix.
8586
* When used, the file will be rotated based on its suffix.
8687
* <p>
88+
* The suffix must be in a date-time format that is understood by {@link DateTimeFormatter}.
89+
* <p>
8790
* Example fileSuffix: .yyyy-MM-dd
8891
* <p>
8992
* Note: If the suffix ends with .zip or .gz, the rotation file will also be compressed.

0 commit comments

Comments
 (0)