Writerpublic class TcpSocketWriter extends AbstractSocketWriter
| Constructor | Description |
|---|---|
TcpSocketWriter(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, renderformatMessage, getCode, getInetAddress, getPortgetBooleanValue, getStringValue, getStringValuepublic TcpSocketWriter(Map<String,String> properties) throws IOException
IOExceptionpublic void write(LogEntry logEntry) throws IOException
WriterlogEntry - Log entry to outputIOExceptionpublic void flush()
throws Exception
WriterException - Any exception can be thrown if flushing has been failedCopyright © 2026. All rights reserved.