public static class FileConfig.RotationConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Optional<String> |
fileSuffix
File handler rotation file suffix.
|
(package private) int |
maxBackupIndex
The maximum number of backups to keep.
|
(package private) Optional<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 and Description |
|---|
RotationConfig() |
@ConfigItem Optional<MemorySize> maxFileSize
@ConfigItem(defaultValue="1") int maxBackupIndex
@ConfigItem Optional<String> fileSuffix
@ConfigItem(defaultValue="true") boolean rotateOnBoot
You need to either set a max-file-size or configure a file-suffix for it to work.
Copyright © 2020 JBoss by Red Hat. All rights reserved.