java.lang.Object
com.github.eventmanager.filehandlers.config.ConfigLogRotate

public class ConfigLogRotate extends Object
The ConfigLogRotate class holds the configuration settings related to log file rotation for the EventManager application. It includes settings for the maximum size of log files, the rotation period, and the compression format to use when rotating log files.
  • Constructor Details

    • ConfigLogRotate

      public ConfigLogRotate()
  • Method Details

    • getMaxSizeInKB

      public int getMaxSizeInKB()
      Gets the maximum size of log files in kilobytes before rotation is triggered.
      Returns:
      the maximum size of log files in kilobytes.
    • setMaxSizeInKB

      public void setMaxSizeInKB(int maxSizeInKB)
      Sets the maximum size of log files in kilobytes before rotation is triggered.
      Parameters:
      maxSizeInKB - the maximum size of log files in kilobytes.
    • getRotationPeriodInSeconds

      public int getRotationPeriodInSeconds()
      Gets the rotation period in seconds after which log files should be rotated.
      Returns:
      the rotation period in seconds.
    • setRotationPeriodInSeconds

      public void setRotationPeriodInSeconds(int rotationPeriodInSeconds)
      Sets the rotation period in seconds after which log files should be rotated.
      Parameters:
      rotationPeriodInSeconds - the rotation period in seconds.
    • getCompressionFormat

      public String getCompressionFormat()
      Gets the compression format to use when rotating log files.
      Returns:
      the compression format.
    • setCompressionFormat

      public void setCompressionFormat(String compressionFormat)
      Sets the compression format to use when rotating log files.
      Parameters:
      compressionFormat - the compression format.