
public class SyslogMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
NILVALUE |
protected static ConcurrentDateFormat |
rfc3164DateFormat |
protected static ConcurrentDateFormat |
rfc3339DateFormat |
static char |
SP |
| Constructor and Description |
|---|
SyslogMessage() |
public static final char SP
public static final char NILVALUE
protected static final ConcurrentDateFormat rfc3339DateFormat
protected static final ConcurrentDateFormat rfc3164DateFormat
public Facility getFacility()
public void setFacility(Facility facility)
public SyslogMessage withFacility(Facility facility)
public Severity getSeverity()
public void setSeverity(Severity severity)
public SyslogMessage withSeverity(Severity severity)
public Date getTimestamp()
public void setTimestamp(Date timestamp)
public SyslogMessage withTimestamp(long timestamp)
public SyslogMessage withTimestamp(Date timestamp)
public String getHostname()
public void setHostname(String hostname)
public SyslogMessage withHostname(String hostname)
public String getAppName()
public void setAppName(String appName)
public SyslogMessage withAppName(String appName)
public String getProcId()
public void setProcId(String procId)
public SyslogMessage withProcId(String procId)
public String getMsgId()
public void setMsgId(String msgId)
public SyslogMessage withMsgId(String msgId)
public CharArrayWriter getMsg()
public void setMsg(CharArrayWriter msg)
public SyslogMessage withMsg(CharArrayWriter msg)
public SyslogMessage withMsg(String msg)
public String toSyslogMessage(MessageFormat messageFormat)
messageFormat - message format, not nullpublic void toSyslogMessage(MessageFormat messageFormat, Writer out) throws IOException
messageFormat - message formatout - output WriterIOExceptionpublic void toRfc5424SyslogMessage(Writer out) throws IOException
IOExceptionpublic String toRfc3164SyslogMessage()
toRfc3164SyslogMessage(java.io.Writer)public void toRfc3164SyslogMessage(Writer out) throws IOException
IOExceptionprotected void writeNillableValue(String value, Writer out) throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.