org.apache.log.output.io.rotate
Class RotateStrategyByDate
java.lang.Objectorg.apache.log.output.io.rotate.RotateStrategyByDate
- RotateStrategy
public class RotateStrategyByDate
extends java.lang.Object
Rotation stragety based on SimpleDateFormat.
$Revision: 1.11 $ $Date: 2003/04/17 09:13:48 $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