public class RotateStrategyByTimeOfDay extends Object implements RotateStrategy
| Constructor and Description |
|---|
RotateStrategyByTimeOfDay()
Rotate logs at specific time of day.
|
RotateStrategyByTimeOfDay(long time)
Rotate logs at specific time of day.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRotationNeeded(String data,
File file)
Check if now a log rotation is neccessary.
|
void |
reset()
reset interval history counters.
|
public RotateStrategyByTimeOfDay()
public RotateStrategyByTimeOfDay(long time)
time - Offset in milliseconds into the day to perform the log rotation.public void reset()
reset in interface RotateStrategypublic boolean isRotationNeeded(String data, File file)
isRotationNeeded in interface RotateStrategydata - the last message written to the log systemfile - not usedCopyright © 1997–2019. All rights reserved.