org.apache.log.output.io.rotate
public class RotateStrategyByDate extends Object implements RotateStrategy
Modifier and Type | Field and Description |
---|---|
private String |
m_current |
private Date |
m_date |
private SimpleDateFormat |
m_format |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRotationNeeded(String data,
File file)
Test is a rotation is required.
|
void |
reset()
Reset the strategy.
|
private SimpleDateFormat m_format
private Date m_date
private String m_current
public RotateStrategyByDate()
public RotateStrategyByDate(String pattern)
pattern
- the message formatting patternpublic void reset()
reset
in interface RotateStrategy
public boolean isRotationNeeded(String data, File file)
isRotationNeeded
in interface RotateStrategy
data
- not usedfile
- not usedCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.