GzipFileConverter, NopFileConverterpublic interface FileConverter
RollingFileWriter.
All methods are called synchronously by tinylog and will block the program flow. Therefore, slow IO operations and long running computing algorithms should be run in separate non-blocking threads.
| 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.
|
java.lang.String getBackupSuffix()
The method can return null, if this converter does not create backup files with different file
extensions.
nullvoid open(java.lang.String fileName)
fileName - Log filebyte[] write(byte[] data)
data - Data to write to the currently opened log filevoid close()
Copyright © 2020. All rights reserved.