|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log.output.io.rotate.UniqueFileStrategy
Strategy for naming log files based on appending time suffix.
A file name can be based on simply appending the number of miliseconds
since (not really sure) 1/1/1970.
Other constructors accept a pattern of a SimpleDateFormat
to form the appended string to the base file name as well as a suffix
which should be appended last.
A new UniqueFileStrategy( new File( "foo." ), "yyyy-MM-dd", ".log" )
object will return File
objects with file names like
foo.2001-12-24.log
Constructor Summary | |
UniqueFileStrategy(java.io.File baseFile)
Creation of a new Unique File Strategy ?? |
|
UniqueFileStrategy(java.io.File baseFile,
java.lang.String pattern)
Creation of a new Unique File Strategy ?? |
|
UniqueFileStrategy(java.io.File baseFile,
java.lang.String pattern,
java.lang.String suffix)
Creation of a new Unique File Strategy ?? |
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 |
public UniqueFileStrategy(java.io.File baseFile)
baseFile
- the base filepublic UniqueFileStrategy(java.io.File baseFile, java.lang.String pattern)
baseFile
- the base filepattern
- the format patternpublic UniqueFileStrategy(java.io.File baseFile, java.lang.String pattern, java.lang.String suffix)
baseFile
- the base filepattern
- the format patternsuffix
- the suffix ??Method Detail |
public java.io.File nextFile()
nextFile
in interface FileStrategy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |