Writer
public 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, getFileName
getRequiredLogEntryValues, render
getBooleanValue, getStringValue
public 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
Writer
logEntry
- Log entry to outputjava.lang.Exception
- Any exception can be thrown if writing has been failedpublic void flush() throws java.lang.Exception
Writer
java.lang.Exception
- Any exception can be thrown if flushing has been failedpublic void close() throws java.lang.Exception
Writer
java.lang.Exception
- Any exception can be thrown if closing has been failedCopyright © 2024. All rights reserved.