Writerpublic final class JsonWriter extends AbstractFileBasedWriter
| Constructor | Description |
|---|---|
JsonWriter() |
|
JsonWriter(java.util.Map<java.lang.String,java.lang.String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
java.util.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, getStringValuepublic JsonWriter()
throws java.io.IOException
java.io.IOException - File not found or couldn't access filejava.lang.IllegalArgumentException - Log file is not defined in configurationpublic JsonWriter(java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.IOException
properties - Configuration for writerjava.io.IOException - File not found or couldn't access filejava.lang.IllegalArgumentException - Log file is not defined in configurationpublic void write(LogEntry logEntry) throws java.io.IOException
WriterlogEntry - Log entry to outputjava.io.IOExceptionpublic void flush()
throws java.io.IOException
Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
Writerjava.io.IOExceptionpublic java.util.Collection<LogEntryValue> getRequiredLogEntryValues()
WriterLogEntry objectsCopyright © 2021. All rights reserved.