org.apache.log.output.io.rotate
Interface RotateStrategy
- OrRotateStrategy, RotateStrategyByDate, RotateStrategyBySize, RotateStrategyByTime
public interface RotateStrategy
Strategy that checks condition under which file rotation is needed.
- Leo Sutic
- Bernhard Huber
boolean | isRotationNeeded(String data, File file) - Check if a log rotation is neccessary at this time.
|
void | reset() - Reset cumulative rotation history data.
|
isRotationNeeded
public boolean isRotationNeeded(String data,
File file)
Check if a log rotation is neccessary at this time.
data
- the serialized version of the message about to be written
to the log systemfile
- the File that we are writing to
- boolean return true if log rotation is neccessary, else false
reset
public void reset()
Reset cumulative rotation history data.
Called after rotation.
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."