public class SyslogMessage extends Object
Constructor and Description |
---|
SyslogMessage(String raw,
int priority,
int facility,
int severity,
Date timestamp,
String host,
String message)
Creates a new syslog message.
|
Modifier and Type | Method and Description |
---|---|
int |
getFacility()
Returns the facility that sent the message
|
String |
getHost()
Returns the host from which the message originated
|
String |
getMessage()
Returns the actual message
|
int |
getPriority()
Returns the priority assigned to the message
|
int |
getSeverity()
Returns the severity assigned to the message
|
Date |
getTimestamp()
Returns the timestamp for the message
|
String |
toString() |
public SyslogMessage(String raw, int priority, int facility, int severity, Date timestamp, String host, 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 Date getTimestamp()
public String getHost()
public String getMessage()
Copyright © 2016. All rights reserved.