FileConverter
public 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 FileConverter
null
public void open(java.lang.String fileName)
FileConverter
open
in interface FileConverter
fileName
- Log filepublic byte[] write(byte[] data)
FileConverter
write
in interface FileConverter
data
- Data to write to the currently opened log filepublic void close()
FileConverter
close
in interface FileConverter
Copyright © 2020. All rights reserved.