org.apache.log.output.io.rotate
public class RevolvingFileStrategy extends java.lang.Object implements FileStrategy
Constructor and Description |
---|
RevolvingFileStrategy(java.io.File baseFile,
int maxRotations)
Creation of a new instane ofthe revolving file strategy.
|
RevolvingFileStrategy(java.io.File baseFile,
int initialRotation,
int maxRotations)
Creation of a new instane ofthe revolving file strategy.
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentRotation()
Retrieve the current rotation number.
|
java.io.File |
nextFile()
Calculate the real file name from the base filename.
|
public RevolvingFileStrategy(java.io.File baseFile, int maxRotations)
baseFile
- the base filemaxRotations
- the maximum number of rotations ??public RevolvingFileStrategy(java.io.File baseFile, int initialRotation, int maxRotations)
baseFile
- the base fileinitialRotation
- the number of initial rotations ??maxRotations
- the maximum number of rotations??public java.io.File nextFile()
nextFile
in interface FileStrategy
public int getCurrentRotation()