Top Description Methods
org.apache.log.output.io.rotate

public Interface RotateStrategy

Known Direct Implementers
org.apache.log.output.io.rotate.RotateStrategyByDate, org.apache.log.output.io.rotate.RotateStrategyBySize, org.apache.log.output.io.rotate.RotateStrategyByTime, org.apache.log.output.io.rotate.RotateStrategyByTimeOfDay, org.apache.log.output.io.rotate.OrRotateStrategy
Imports
java.io.File

Strategy that checks condition under which file rotation is needed.
Authors
Leo Sutic, Bernhard Huber

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

boolean return true if log rotation is neccessary, else false
isRotationNeeded
(String
the serialized version of the message about to be written to the log system
data
,
File
the File that we are writing to
file
)

Check if a log rotation is neccessary at this time.

public void
reset()

Reset cumulative rotation history data.

Method Detail

isRotationNeededback to summary
public boolean isRotationNeeded(String data, File file)

Check if a log rotation is neccessary at this time.

Parameters
data:String

the serialized version of the message about to be written to the log system

file:File

the File that we are writing to

Returns:boolean

boolean return true if log rotation is neccessary, else false

resetback to summary
public void reset()

Reset cumulative rotation history data. Called after rotation.