Writer
public class TcpSocketWriter extends AbstractSocketWriter
Constructor | Description |
---|---|
TcpSocketWriter(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
formatMessage, getCode, getInetAddress, getPort
getBooleanValue, getStringValue
public TcpSocketWriter(java.util.Map<java.lang.String,java.lang.String> properties) throws java.io.IOException
java.io.IOException
public void write(LogEntry logEntry) throws java.io.IOException
Writer
logEntry
- Log entry to outputjava.io.IOException
public 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.