public class SyslogHandler extends Object
| Constructor and Description |
|---|
SyslogHandler(String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
appName()
The app name used when formatting the message in RFC5424 format.
|
SyslogHandler |
appName(String value)
The app name used when formatting the message in RFC5424 format.
|
Boolean |
enabled()
If set to true the handler is enabled and functioning as normal, if set to false the handler is ignored when processing log messages.
|
SyslogHandler |
enabled(Boolean value)
If set to true the handler is enabled and functioning as normal, if set to false the handler is ignored when processing log messages.
|
String |
facility()
Facility as defined by RFC-5424 (http://tools.ietf.org/html/rfc5424)and RFC-3164 (http://tools.ietf.org/html/rfc3164).
|
SyslogHandler |
facility(String value)
Facility as defined by RFC-5424 (http://tools.ietf.org/html/rfc5424)and RFC-3164 (http://tools.ietf.org/html/rfc3164).
|
String |
getKey() |
String |
hostname()
The name of the host the messages are being sent from.
|
SyslogHandler |
hostname(String value)
The name of the host the messages are being sent from.
|
String |
level()
The log level specifying which message levels will be logged by this logger.
|
SyslogHandler |
level(String value)
The log level specifying which message levels will be logged by this logger.
|
Integer |
port()
The port the syslog server is listening on.
|
SyslogHandler |
port(Integer value)
The port the syslog server is listening on.
|
String |
serverAddress()
The address of the syslog server.
|
SyslogHandler |
serverAddress(String value)
The address of the syslog server.
|
String |
syslogFormat()
Formats the log message according to the RFC specification.
|
SyslogHandler |
syslogFormat(String value)
Formats the log message according to the RFC specification.
|
public SyslogHandler(String key)
public String getKey()
public String appName()
public SyslogHandler appName(String value)
public Boolean enabled()
public SyslogHandler enabled(Boolean value)
public String facility()
public SyslogHandler facility(String value)
public String hostname()
public SyslogHandler hostname(String value)
public String level()
public SyslogHandler level(String value)
public Integer port()
public SyslogHandler port(Integer value)
public String serverAddress()
public SyslogHandler serverAddress(String value)
public String syslogFormat()
public SyslogHandler syslogFormat(String value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.