Package io.quarkus.runtime.logging
Class FileConfig.RotationConfig
- java.lang.Object
-
- io.quarkus.runtime.logging.FileConfig.RotationConfig
-
- Enclosing class:
- FileConfig
public static class FileConfig.RotationConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<String>
fileSuffix
File handler rotation file suffix.(package private) int
maxBackupIndex
The maximum number of backups to keep.(package private) MemorySize
maxFileSize
The maximum file size of the log file after which a rotation is executed.(package private) boolean
rotateOnBoot
Indicates whether to rotate log files on server initialization.
-
Constructor Summary
Constructors Constructor Description RotationConfig()
-
-
-
Field Detail
-
maxFileSize
@ConfigItem(defaultValue="10M") MemorySize maxFileSize
The maximum file size of the log file after which a rotation is executed.
-
maxBackupIndex
@ConfigItem(defaultValue="5") int maxBackupIndex
The maximum number of backups to keep.
-
fileSuffix
@ConfigItem Optional<String> fileSuffix
File handler rotation file suffix. When used, the file will be rotated based on its suffix. Example fileSuffix: .yyyy-MM-dd
-
rotateOnBoot
@ConfigItem(defaultValue="true") boolean rotateOnBoot
Indicates whether to rotate log files on server initialization.You need to either set a
max-file-size
or configure afile-suffix
for it to work.
-
-