org.apache.log.output.io.rotate
Class RotateStrategyByDate
java.lang.Object
org.apache.log.output.io.rotate.RotateStrategyByDate
- RotateStrategy
public class RotateStrategyByDate
extends java.lang.Object
Rotation stragety based on SimpleDateFormat.
$Revision: 1.10 $ $Date: 2003/02/09 23:33:24 $RotateStrategyByDate() - Creation of a new rotation strategy based on a date policy.
|
RotateStrategyByDate(String pattern) - Creation of a new rotation strategy based on a date policy
using a supplied pattern.
|
boolean | isRotationNeeded(String data, File file) - Test is a rotation is required.
|
void | reset() - Reset the strategy.
|
RotateStrategyByDate
public RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy.
RotateStrategyByDate
public RotateStrategyByDate(String pattern)
Creation of a new rotation strategy based on a date policy
using a supplied pattern.
pattern
- the message formatting pattern
isRotationNeeded
public boolean isRotationNeeded(String data,
File file)
Test is a rotation is required. Documentation pending ??
- isRotationNeeded in interface RotateStrategy
data
- not usedfile
- not used
- TRUE if a rotation is required else FALSE