WriterTcpSocketWriter, UdpSocketWriterpublic abstract class AbstractSocketWriter extends AbstractFormatPatternWriter
| Constructor | Description |
|---|---|
AbstractSocketWriter(Map<String,String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
formatMessage(LogEntry logEntry) |
Return the formated syslog message.
|
int |
getCode(org.tinylog.Level level) |
Return the priority code for facility and severity.
|
InetAddress |
getInetAddress() |
|
int |
getPort() |
createByteArrayWriter, getCharset, getCharsetHeader, getFileNamegetRequiredLogEntryValues, rendergetBooleanValue, getStringValue, getStringValuepublic AbstractSocketWriter(Map<String,String> properties) throws UnknownHostException
properties - Configuration for writerUnknownHostException - Host name cannot be identifiedpublic final InetAddress getInetAddress()
public final int getPort()
public int getCode(org.tinylog.Level level)
level - Log level to use when severity is not specified.public byte[] formatMessage(LogEntry logEntry)
logEntry - Log entry for rendering.Copyright © 2026. All rights reserved.