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.
$Id: RotateStrategyByDate.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
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.
|
m_current
private String m_current
m_date
private Date m_date
m_format
private SimpleDateFormat m_format
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