Writerpublic final class SyslogWriter extends AbstractFormatPatternWriter
| Constructor | Description |
|---|---|
SyslogWriter(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.
|
void |
write(LogEntry logEntry) |
Outputs a given log entry.
|
createByteArrayWriter, getCharset, getCharsetHeader, getFileNamegetRequiredLogEntryValues, rendergetBooleanValue, getStringValuepublic SyslogWriter(java.util.Map<java.lang.String,java.lang.String> properties)
throws java.lang.IllegalArgumentException,
java.io.IOException
properties - Configuration for writerjava.io.IOException - Socket cannot be opened for write accessjava.lang.IllegalArgumentException - A property has an invalid value or is missing in configurationpublic void write(LogEntry logEntry) throws java.lang.Exception
WriterlogEntry - Log entry to outputjava.lang.Exception - Any exception can be thrown if writing has been failedpublic void flush()
throws java.lang.Exception
Writerjava.lang.Exception - Any exception can be thrown if flushing has been failedpublic void close()
throws java.lang.Exception
Writerjava.lang.Exception - Any exception can be thrown if closing has been failedCopyright © 2023. All rights reserved.