public static class FilePrinter.TimingFileNameGenerator extends Object implements FilePrinter.FileNameGenerator
Constructor and Description |
---|
TimingFileNameGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
nextFile()
Generate a file name
|
String |
nextFileIfDuplicate(File dir,
String timestamp)
NOTE: the return value for this method should NOT be null, and should be a simple name
because the file path is decided by file logger instead of this interface.
|
public String nextFile()
FilePrinter.FileNameGenerator
NOTE: the return value for this method should NOT be null, and should be a simple name because the file path is decided by file logger instead of this interface.
nextFile
in interface FilePrinter.FileNameGenerator
public String nextFileIfDuplicate(File dir, String timestamp)
FilePrinter.FileNameGenerator
nextFileIfDuplicate
in interface FilePrinter.FileNameGenerator
dir
- the directory of log files. This parameter is provided for
accessing files
if needed.timestamp
- last returned value for FilePrinter.FileNameGenerator.nextFile()
.