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 RotateStrategy
public boolean isRotationNeeded(String data, File file)
isRotationNeeded
in interface RotateStrategy
data
- the last message written to the log systemfile
- not usedCopyright © 1997–2017. All rights reserved.