FileConverterpublic final class NopFileConverter extends java.lang.Object implements FileConverter
| Constructor | Description |
|---|---|
NopFileConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
This method is called when tinylog closes the current log file.
|
java.lang.String |
getBackupSuffix() |
Gets the additional file extension for backup files.
|
void |
open(java.lang.String fileName) |
This method is called when tinylog opens a log file for writing log entries.
|
byte[] |
write(byte[] data) |
This method can convert data before writing to the currently opened log file.
|
public java.lang.String getBackupSuffix()
FileConverter
The method can return null, if this converter does not create backup files with different file
extensions.
getBackupSuffix in interface FileConverternullpublic void open(java.lang.String fileName)
FileConverteropen in interface FileConverterfileName - Log filepublic byte[] write(byte[] data)
FileConverterwrite in interface FileConverterdata - Data to write to the currently opened log filepublic void close()
FileConverterclose in interface FileConverterCopyright © 2020. All rights reserved.