public static class FileLogger.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FileLogger |
build() |
FileLogger.Builder |
file(java.io.File file)
The
FileOutputStream where the log messages should be written to. |
FileLogger.Builder |
fileOutputStream(java.io.FileOutputStream fos)
The
FileOutputStream where the log messages should be written to. |
FileLogger.Builder |
messageFormat(MessageFormat messageFormat)
The argument format for the log message.
|
FileLogger.Builder |
prefix(java.lang.String prefix)
The prefix for the log message.
|
public FileLogger.Builder file(java.io.File file) throws java.io.FileNotFoundException
FileOutputStream where the log messages should be written to.file - The file where the log messages should be written tojava.io.FileNotFoundException - If the file could not be foundpublic FileLogger.Builder fileOutputStream(java.io.FileOutputStream fos)
FileOutputStream where the log messages should be written to.fos - The FileOutputStream where the log messages should be written topublic FileLogger.Builder prefix(java.lang.String prefix)
prefix - The prefix for the log messagepublic FileLogger.Builder messageFormat(MessageFormat messageFormat)
messageFormat - The argument format for the log messagepublic FileLogger build()