public interface RollingPolicy
extends org.apache.log4j.spi.OptionHandler
RollingPolicy
specifies the actions taken
on a logging file rollover.Modifier and Type | Method and Description |
---|---|
RolloverDescription |
initialize(String file,
boolean append)
Initialize the policy and return any initial actions for rolling file appender..
|
RolloverDescription |
rollover(String activeFile)
Prepare for a rollover.
|
RolloverDescription initialize(String file, boolean append) throws SecurityException
file
- current value of RollingFileAppender.getFile().append
- current value of RollingFileAppender.getAppend().SecurityException
- if denied access to log files.RolloverDescription rollover(String activeFile) throws SecurityException
activeFile
- file name for current active log file.SecurityException
- if denied access to log files.Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.