org.apache.log.output.io.rotate
public class RevolvingFileStrategy extends Object implements FileStrategy
Constructor Summary | |
---|---|
RevolvingFileStrategy(File baseFile, int maxRotations)
Creation of a new instane ofthe revolving file strategy. | |
RevolvingFileStrategy(File baseFile, int initialRotation, int maxRotations)
Creation of a new instane ofthe revolving file strategy. |
Method Summary | |
---|---|
int | getCurrentRotation()
Retrieve the current rotation number.
|
File | nextFile()
Calculate the real file name from the base filename.
|
Parameters: baseFile the base file maxRotations the maximum number of rotations ??
Parameters: baseFile the base file initialRotation the number of initial rotations ?? maxRotations the maximum number of rotations??
Returns: the current rotation number.
Returns: File the calculated file name