Writerpublic class UdpSocketWriter extends AbstractSocketWriter
| Constructor | Description |
|---|---|
UdpSocketWriter(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, renderformatMessage, getCode, getInetAddress, getPortgetBooleanValue, getStringValuepublic UdpSocketWriter(java.util.Map<java.lang.String,java.lang.String> properties)
throws java.io.IOException
java.io.IOExceptionpublic void write(LogEntry logEntry) throws java.io.IOException
WriterlogEntry - Log entry to outputjava.io.IOExceptionpublic 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.