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.FileNameGeneratorNOTE: 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.FileNameGeneratorpublic String nextFileIfDuplicate(File dir, String timestamp)
FilePrinter.FileNameGeneratornextFileIfDuplicate in interface FilePrinter.FileNameGeneratordir - the directory of log files. This parameter is provided for
accessing files
if needed.timestamp - last returned value for FilePrinter.FileNameGenerator.nextFile().