Interface RolloverStrategy
-
- All Known Implementing Classes:
AbstractRolloverStrategy,DefaultRolloverStrategy,DirectWriteRolloverStrategy
public interface RolloverStrategyARollingPolicyspecifies the actions taken on a logging file rollover.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RolloverDescriptionrollover(RollingFileManager manager)Prepare for a rollover.
-
-
-
Method Detail
-
rollover
RolloverDescription rollover(RollingFileManager manager) throws java.lang.SecurityException
Prepare for a rollover. This method is called prior to closing the active log file, performs any necessary preliminary actions and describes actions needed after close of current log file.- Parameters:
manager- The RollingFileManager name for current active log file.- Returns:
- Description of pending rollover, may be null to indicate no rollover at this time.
- Throws:
java.lang.SecurityException- if denied access to log files.
-
-