org.apache.log.output.io.rotate
public class RotateStrategyByDate extends java.lang.Object implements RotateStrategy
| Constructor and Description |
|---|
RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy.
|
RotateStrategyByDate(java.lang.String pattern)
Creation of a new rotation strategy based on a date policy
using a supplied pattern.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRotationNeeded(java.lang.String data,
java.io.File file)
Test is a rotation is required.
|
void |
reset()
Reset the strategy.
|
public RotateStrategyByDate()
public RotateStrategyByDate(java.lang.String pattern)
pattern - the message formatting patternpublic void reset()
reset in interface RotateStrategypublic boolean isRotationNeeded(java.lang.String data,
java.io.File file)
isRotationNeeded in interface RotateStrategydata - not usedfile - not used