public class SyslogMessage
extends java.lang.Object
| Constructor and Description |
|---|
SyslogMessage(java.lang.String raw,
int priority,
int facility,
int severity,
java.util.Date timestamp,
java.lang.String host,
java.lang.String message)
Creates a new syslog message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFacility()
Returns the facility that sent the message
|
java.lang.String |
getHost()
Returns the host from which the message originated
|
java.lang.String |
getMessage()
Returns the actual message
|
int |
getPriority()
Returns the priority assigned to the message
|
int |
getSeverity()
Returns the severity assigned to the message
|
java.util.Date |
getTimestamp()
Returns the timestamp for the message
|
java.lang.String |
toString() |
public SyslogMessage(java.lang.String raw,
int priority,
int facility,
int severity,
java.util.Date timestamp,
java.lang.String host,
java.lang.String message)
raw - The raw, unparsed messagepriority - The message's priorityfacility - The message's facilityseverity - The message's severitytimestamp - The message's timestamphost - The host from which the message originatedmessage - The actual messagepublic int getPriority()
public int getFacility()
public int getSeverity()
public java.util.Date getTimestamp()
public java.lang.String getHost()
public java.lang.String getMessage()
public java.lang.String toString()
toString in class java.lang.Object