org.apache.log.output.io.rotate
public class RotateStrategyByTimeOfDay extends Object implements RotateStrategy
| Field Summary | |
|---|---|
| long | m_currentRotation Time in ms that the current rotation started. |
| static long | TIME_24_HOURS Constant that stores the the number of ms in 24 hours. |
| Constructor Summary | |
|---|---|
| RotateStrategyByTimeOfDay()
Rotate logs at specific time of day.
| |
| RotateStrategyByTimeOfDay(long time)
Rotate logs at specific time of day.
| |
| Method Summary | |
|---|---|
| boolean | isRotationNeeded(String data, File file)
Check if now a log rotation is neccessary.
|
| void | reset()
reset interval history counters. |
Parameters: time Offset in milliseconds into the day to perform the log rotation.
Parameters: data the last message written to the log system file not used
Returns: boolean return true if log rotation is neccessary, else false