Class RotateStrategyByDate
java.lang.Object
org.apache.log.output.io.rotate.RotateStrategyByDate
- All Implemented Interfaces:
RotateStrategy
Rotation stragety based on SimpleDateFormat.
- Version:
- $Id: RotateStrategyByDate.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
- Author:
- Avalon Development Team, Eung-ju Park
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreation 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
Modifier and TypeMethodDescriptionbooleanisRotationNeeded(String data, File file) Test is a rotation is required.voidreset()Reset the strategy.
-
Field Details
-
m_format
-
m_date
-
m_current
-
-
Constructor Details
-
RotateStrategyByDate
public RotateStrategyByDate()Creation of a new rotation strategy based on a date policy. -
RotateStrategyByDate
Creation of a new rotation strategy based on a date policy using a supplied pattern.- Parameters:
pattern- the message formatting pattern
-
-
Method Details
-
reset
-
isRotationNeeded
Test is a rotation is required. Documentation pending ??- Specified by:
isRotationNeededin interfaceRotateStrategy- Parameters:
data- not usedfile- not used- Returns:
- TRUE if a rotation is required else FALSE
-