public static interface FilePrinter.FileNameGenerator
Modifier and Type | Method and Description |
---|---|
String |
nextFile()
Generate a file name
|
String |
nextFileIfDuplicate(File dir,
String lastGenerated)
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.
|
String nextFile()
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.
String nextFileIfDuplicate(File dir, String lastGenerated)
dir
- the directory of log files. This parameter is provided for
accessing files
if needed.
lastGenerated
- last returned value for nextFile()
.