Class FileConfig.RotationConfig

java.lang.Object
io.quarkus.runtime.logging.FileConfig.RotationConfig
Enclosing class:
FileConfig

public static class FileConfig.RotationConfig extends Object
  • Field Details

    • maxFileSize

      @ConfigItem(defaultValue="10M") MemorySize maxFileSize
      The maximum log file size, after which a rotation is executed.
    • maxBackupIndex

      @ConfigItem(defaultValue="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

      @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 a file-suffix for it to work.

  • Constructor Details

    • RotationConfig

      public RotationConfig()