Writerpublic final class JsonWriter extends AbstractFileBasedWriter
| Constructor | Description |
|---|---|
JsonWriter() |
|
JsonWriter(Map<String,String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
Collection<LogEntryValue> |
getRequiredLogEntryValues() |
Returns all log entry values that are required for outputting a log entry.
|
void |
write(LogEntry logEntry) |
Outputs a given log entry.
|
createByteArrayWriter, getCharset, getCharsetHeader, getFileNamegetBooleanValue, getStringValue, getStringValuepublic JsonWriter()
throws IOException
IOException - File not found or couldn't access fileIllegalArgumentException - Log file is not defined in configurationpublic JsonWriter(Map<String,String> properties) throws IOException
properties - Configuration for writerIOException - File not found or couldn't access fileIllegalArgumentException - 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
WriterIOExceptionpublic Collection<LogEntryValue> getRequiredLogEntryValues()
WriterLogEntry objectsCopyright © 2026. All rights reserved.