org.apache.log.output.io.rotate
Class RevolvingFileStrategy
java.lang.Object
|
+--org.apache.log.output.io.rotate.RevolvingFileStrategy
- All Implemented Interfaces:
- FileStrategy
- public class RevolvingFileStrategy
- extends java.lang.Object
- implements FileStrategy
strategy for naming log files based on appending revolving suffix.
- Author:
- Bernhard Huber
Method Summary |
java.io.File |
nextFile()
Calculate the real file name from the base filename. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RevolvingFileStrategy
public RevolvingFileStrategy(java.io.File baseFile,
int initialRotation,
int maxRotations)
RevolvingFileStrategy
public RevolvingFileStrategy(java.io.File baseFile,
int maxRotations)
nextFile
public java.io.File nextFile()
- Calculate the real file name from the base filename.
- Specified by:
nextFile
in interface FileStrategy
- Returns:
- File the calculated file name
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."