Writerpublic final class FileWriter extends AbstractFormatPatternWriter
| Constructor | Description |
|---|---|
FileWriter() |
|
FileWriter(Map<String,String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
void |
write(LogEntry logEntry) |
Outputs a given log entry.
|
createByteArrayWriter, getCharset, getCharsetHeader, getFileNamegetRequiredLogEntryValues, rendergetBooleanValue, getStringValue, getStringValuepublic FileWriter()
throws IOException
IOException - Log file cannot be opened for write accessIllegalArgumentException - Log file is not defined in configurationpublic FileWriter(Map<String,String> properties) throws IOException
properties - Configuration for writerIOException - Log file cannot be opened for write accessIllegalArgumentException - Log file is not defined in configurationpublic void write(LogEntry logEntry) throws IOException
WriterlogEntry - Log entry to outputIOExceptionpublic void flush()
throws IOException
WriterIOExceptionpublic void close()
throws IOException
WriterIOExceptionCopyright © 2026. All rights reserved.