Package io.quarkus.runtime.logging
Class FileConfig.RotationConfig
java.lang.Object
io.quarkus.runtime.logging.FileConfig.RotationConfig
- Enclosing class:
- FileConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe file handler rotation file suffix.(package private) int
The maximum number of backups to keep.(package private) MemorySize
The maximum log file size, after which a rotation is executed.(package private) boolean
Indicates whether to rotate log files on server initialization. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
maxFileSize
The maximum log file size, after which a rotation is executed. -
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
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.
-
-
Constructor Details
-
RotationConfig
public RotationConfig()
-