@Addresses(value={"/subsystem=logging/syslog-handler=*","/subsystem=logging/logging-profile=*/syslog-handler=*"}) 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(String facility)
Deprecated.
|
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.
|
T |
level(String level)
Deprecated.
|
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(String syslogFormat)
Deprecated.
|
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)
@ModelNodeBinding(detypedName="app-name") public String appName()
public T appName(String value)
@ModelNodeBinding(detypedName="enabled") public Boolean enabled()
public T enabled(Boolean value)
@Deprecated public T facility(String facility)
@ModelNodeBinding(detypedName="facility") public SyslogHandler.Facility facility()
public T facility(SyslogHandler.Facility value)
@ModelNodeBinding(detypedName="hostname") public String hostname()
public T hostname(String value)
@Deprecated public T level(String level)
@ModelNodeBinding(detypedName="level") public Level level()
public T level(Level value)
@ModelNodeBinding(detypedName="port") public Integer port()
@ModelNodeBinding(detypedName="server-address") public String serverAddress()
@Deprecated public T syslogFormat(String syslogFormat)
@ModelNodeBinding(detypedName="syslog-format") public SyslogHandler.SyslogFormat syslogFormat()
public T syslogFormat(SyslogHandler.SyslogFormat value)
Copyright © 2016 JBoss by Red Hat. All rights reserved.