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.
|
void |
shutdown() |
Shuts this file converter down.
|
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
public void shutdown()
FileConverter
If the converter has started any further threads, this method must await their termination.
shutdown
in interface FileConverter
Copyright © 2022. All rights reserved.