public interface RollingPolicy extends OptionHandler
RollingPolicy
specifies the actions taken
on a logging file rollover.Modifier and Type | Method and Description |
---|---|
RolloverDescription |
initialize(java.lang.String file,
boolean append)
Initialize the policy and return any initial actions for rolling file appender..
|
RolloverDescription |
rollover(java.lang.String activeFile)
Prepare for a rollover.
|
activateOptions
RolloverDescription initialize(java.lang.String file, boolean append) throws java.lang.SecurityException
file
- current value of RollingFileAppender.getFile().append
- current value of RollingFileAppender.getAppend().java.lang.SecurityException
- if denied access to log files.RolloverDescription rollover(java.lang.String activeFile) throws java.lang.SecurityException
activeFile
- file name for current active log file.java.lang.SecurityException
- if denied access to log files.Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.