Writerpublic final class SyslogWriter extends AbstractFormatPatternWriter
| Constructor | Description |
|---|---|
SyslogWriter(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 SyslogWriter(Map<String,String> properties) throws IllegalArgumentException, IOException
properties - Configuration for writerIOException - Socket cannot be opened for write accessIllegalArgumentException - A property has an invalid value or is missing in configurationpublic void write(LogEntry logEntry) throws Exception
WriterlogEntry - Log entry to outputException - Any exception can be thrown if writing has been failedpublic void flush()
throws Exception
WriterException - Any exception can be thrown if flushing has been failedCopyright © 2026. All rights reserved.