Package io.quarkus.runtime.logging
Interface LogRuntimeConfig.FileConfig.RotationConfig
- Enclosing interface:
- LogRuntimeConfig.FileConfig
public static interface LogRuntimeConfig.FileConfig.RotationConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe file handler rotation file suffix.int
The maximum number of backups to keep.@WithConverter(MemorySizeConverter.class) MemorySize
The maximum log file size, after which a rotation is executed.boolean
Indicates whether to rotate log files on server initialization.
-
Method Details
-
maxFileSize
@WithDefault("10M") @WithConverter(MemorySizeConverter.class) @WithConverter(MemorySizeConverter.class) MemorySize maxFileSize()The maximum log file size, after which a rotation is executed. Note that the file is rotated after the log record is written. Thus, this isn't a hard maximum on the file size; rather, it's a hard minimum on the size of the file before it is rotated. -
maxBackupIndex
@WithDefault("5") int maxBackupIndex()The maximum number of backups to keep. -
fileSuffix
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
DateTimeFormatter
.Example fileSuffix: .yyyy-MM-dd
Note: If the suffix ends with .zip or .gz, the rotation file will also be compressed.
-
rotateOnBoot
@WithDefault("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.
-