org.apache.log.output.io.rotate
Class UniqueFileStrategy

java.lang.Object
  |
  +--org.apache.log.output.io.rotate.UniqueFileStrategy
All Implemented Interfaces:
FileStrategy

public class UniqueFileStrategy
extends java.lang.Object
implements FileStrategy

strategy for naming log files based on appending time suffix

Author:
Bernhard Huber

Constructor Summary
UniqueFileStrategy(java.io.File baseFile)
           
 
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
 

Constructor Detail

UniqueFileStrategy

public UniqueFileStrategy(java.io.File baseFile)
Method Detail

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.