org.apache.log.output.io.rotate
public class RotateStrategyByDate extends Object implements RotateStrategy
Version: $Id: RotateStrategyByDate.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
String | m_current |
Date | m_date |
SimpleDateFormat | m_format |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean | isRotationNeeded(String data, File file)
Test is a rotation is required. |
void | reset()
Reset the strategy. |
Parameters: pattern the message formatting pattern
Parameters: data not used file not used
Returns: TRUE if a rotation is required else FALSE