Interface RolloverStrategy

All Known Implementing Classes:
AbstractRolloverStrategy, DefaultRolloverStrategy

public interface RolloverStrategy

A RollingPolicy specifies the actions taken on a logging file rollover.

Method Summary
 RolloverDescription rollover(RollingFileManager manager)
          Prepare for a rollover.

Method Detail


RolloverDescription rollover(RollingFileManager manager)
                             throws 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.

manager - The RollingFileManager name for current active log file.
Description of pending rollover, may be null to indicate no rollover at this time.
SecurityException - if denied access to log files.

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.