Package org.apache.log.output.io.rotate
Interface RotateStrategy
-
- All Known Implementing Classes:
OrRotateStrategy
,RotateStrategyByDate
,RotateStrategyBySize
,RotateStrategyByTime
,RotateStrategyByTimeOfDay
public interface RotateStrategy
Strategy that checks condition under which file rotation is needed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRotationNeeded(java.lang.String data, java.io.File file)
Check if a log rotation is neccessary at this time.void
reset()
Reset cumulative rotation history data.
-
-
-
Method Detail
-
reset
void reset()
Reset cumulative rotation history data. Called after rotation.
-
isRotationNeeded
boolean isRotationNeeded(java.lang.String data, java.io.File file)
Check if a log rotation is neccessary at this time.- Parameters:
data
- the serialized version of the message about to be written to the log systemfile
- the File that we are writing to- Returns:
- boolean return true if log rotation is neccessary, else false
-
-