public class SyslogHandler<T extends SyslogHandler<T>> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SyslogHandler.Facility  | 
static class  | 
SyslogHandler.SyslogFormat  | 
| Constructor and Description | 
|---|
SyslogHandler(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
String | 
appName()
The app name used when formatting the message in RFC5424 format. 
 | 
T | 
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. 
 | 
T | 
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. 
 | 
SyslogHandler.Facility | 
facility()
Facility as defined by RFC-5424 (http://tools.ietf.org/html/rfc5424)and
 RFC-3164 (http://tools.ietf.org/html/rfc3164). 
 | 
T | 
facility(SyslogHandler.Facility 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. 
 | 
T | 
hostname(String value)
The name of the host the messages are being sent from. 
 | 
Level | 
level()
The log level specifying which message levels will be logged by this
 logger. 
 | 
T | 
level(Level value)
The log level specifying which message levels will be logged by this
 logger. 
 | 
Integer | 
port()
The port the syslog server is listening on. 
 | 
T | 
port(Integer value)
The port the syslog server is listening on. 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
String | 
serverAddress()
The address of the syslog server. 
 | 
T | 
serverAddress(String value)
The address of the syslog server. 
 | 
SyslogHandler.SyslogFormat | 
syslogFormat()
Formats the log message according to the RFC specification. 
 | 
T | 
syslogFormat(SyslogHandler.SyslogFormat value)
Formats the log message according to the RFC specification. 
 | 
public SyslogHandler(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public String appName()
public T appName(String value)
public Boolean enabled()
public T enabled(Boolean value)
public SyslogHandler.Facility facility()
public T facility(SyslogHandler.Facility value)
public String hostname()
public T hostname(String value)
public Level level()
public T level(Level value)
public Integer port()
public String serverAddress()
public SyslogHandler.SyslogFormat syslogFormat()
public T syslogFormat(SyslogHandler.SyslogFormat value)
Copyright © 2018 JBoss by Red Hat. All rights reserved.