Module com.github.eventmanager
Class ConfigLogRotate
java.lang.Object
com.github.eventmanager.filehandlers.config.ConfigLogRotate
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the compression format to use when rotating log files.int
Gets the maximum size of log files in kilobytes before rotation is triggered.int
Gets the rotation period in seconds after which log files should be rotated.void
setCompressionFormat
(String compressionFormat) Sets the compression format to use when rotating log files.void
setMaxSizeInKB
(int maxSizeInKB) Sets the maximum size of log files in kilobytes before rotation is triggered.void
setRotationPeriodInSeconds
(int rotationPeriodInSeconds) Sets the rotation period in seconds after which log files should be rotated.
-
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
Gets the compression format to use when rotating log files.- Returns:
- the compression format.
-
setCompressionFormat
Sets the compression format to use when rotating log files.- Parameters:
compressionFormat
- the compression format.
-