org.apache.log.output.io.rotate
Class RotateStrategyByDate
java.lang.Object
|
+--org.apache.log.output.io.rotate.RotateStrategyByDate
- All Implemented Interfaces:
- RotateStrategy
- public class RotateStrategyByDate
- extends Object
- implements RotateStrategy
Rotation stragety based on SimpleDateFormat.
- Version:
- $Revision: 1.4 $ $Date: 2002/03/27 22:07:57 $
- Author:
- Eung-ju Park
Method Summary |
boolean |
isRotationNeeded(String data,
File file)
Check if a log rotation is neccessary at this time. |
void |
reset()
reset cumulative rotation history data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotateStrategyByDate
public RotateStrategyByDate()
RotateStrategyByDate
public RotateStrategyByDate(String pattern)
reset
public void reset()
- Description copied from interface:
RotateStrategy
- reset cumulative rotation history data.
Called after rotation.
- Specified by:
reset
in interface RotateStrategy
isRotationNeeded
public boolean isRotationNeeded(String data,
File file)
- Description copied from interface:
RotateStrategy
- Check if a log rotation is neccessary at this time.
- Specified by:
isRotationNeeded
in interface RotateStrategy
- Following copied from interface:
org.apache.log.output.io.rotate.RotateStrategy
- Parameters:
data
- the serialized version of last message written to the log systemfile
- the File that we are writing to- Returns:
- boolean return true if log rotation is neccessary, else false
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.