public class SyslogHandler<T extends SyslogHandler<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SyslogHandler.Facility |
static class |
SyslogHandler.SyslogFormat |
static class |
SyslogHandler.SyslogHandlerResources
Child mutators for SyslogHandler
|
Constructor and Description |
---|
SyslogHandler(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
appName()
The application name to add to the syslog records as defined in section
6.2.5 of RFC-5424.
|
T |
appName(String value)
The application name to add to the syslog records as defined in section
6.2.5 of RFC-5424.
|
Boolean |
disabledDueToFailure()
Whether this handler has been disabled due to logging failures.
|
T |
disabledDueToFailure(Boolean value)
Whether this handler has been disabled due to logging failures.
|
SyslogHandler.Facility |
facility()
The facility to use for syslog logging as defined in section 6.2.1 of
RFC-5424, and section 4.1.1 of RFC-3164.
|
T |
facility(SyslogHandler.Facility value)
The facility to use for syslog logging as defined in section 6.2.1 of
RFC-5424, and section 4.1.1 of RFC-3164.
|
Integer |
failureCount()
The number of logging failures since the handler was initialized.
|
T |
failureCount(Integer value)
The number of logging failures since the handler was initialized.
|
String |
formatter()
The formatter used to format the log messages.
|
T |
formatter(String value)
The formatter used to format the log messages.
|
String |
getKey() |
Integer |
maxFailureCount()
The maximum number of logging failures before disabling this handler.
|
T |
maxFailureCount(Integer value)
The maximum number of logging failures before disabling this handler.
|
Integer |
maxLength()
The maximum length in bytes a log message, including the header, is
allowed to be.
|
T |
maxLength(Integer value)
The maximum length in bytes a log message, including the header, is
allowed to be.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
SyslogHandler.SyslogHandlerResources |
subresources() |
SyslogHandler.SyslogFormat |
syslogFormat()
Whether to set the syslog format to the one specified in RFC-5424 or
RFC-3164.
|
T |
syslogFormat(SyslogHandler.SyslogFormat value)
Whether to set the syslog format to the one specified in RFC-5424 or
RFC-3164.
|
T |
tcpProtocol()
Configuration to append to syslog over tcp/ip.
|
T |
tcpProtocol(TcpProtocol value)
Configuration to append to syslog over tcp/ip.
|
T |
tcpProtocol(TcpProtocolConsumer consumer)
Configuration to append to syslog over tcp/ip.
|
T |
tcpProtocol(TcpProtocolSupplier supplier)
Configuration to append to syslog over tcp/ip.
|
T |
tlsProtocol()
Configuration to append to syslog over tls over tcp/ip.
|
T |
tlsProtocol(TlsProtocol value)
Configuration to append to syslog over tls over tcp/ip.
|
T |
tlsProtocol(TlsProtocolConsumer consumer)
Configuration to append to syslog over tls over tcp/ip.
|
T |
tlsProtocol(TlsProtocolSupplier supplier)
Configuration to append to syslog over tls over tcp/ip.
|
Boolean |
truncate()
Whether or not a message, including the header, should truncate the
message if the length in bytes is greater than the maximum length.
|
T |
truncate(Boolean value)
Whether or not a message, including the header, should truncate the
message if the length in bytes is greater than the maximum length.
|
T |
udpProtocol()
Configuration to append to syslog over udp/ip.
|
T |
udpProtocol(UdpProtocol value)
Configuration to append to syslog over udp/ip.
|
T |
udpProtocol(UdpProtocolConsumer consumer)
Configuration to append to syslog over udp/ip.
|
T |
udpProtocol(UdpProtocolSupplier supplier)
Configuration to append to syslog over udp/ip.
|
public SyslogHandler(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public SyslogHandler.SyslogHandlerResources subresources()
public T tcpProtocol(TcpProtocol value)
public T tcpProtocol(TcpProtocolConsumer consumer)
public T tcpProtocol()
public T tcpProtocol(TcpProtocolSupplier supplier)
public T udpProtocol(UdpProtocol value)
public T udpProtocol(UdpProtocolConsumer consumer)
public T udpProtocol()
public T udpProtocol(UdpProtocolSupplier supplier)
public T tlsProtocol(TlsProtocol value)
public T tlsProtocol(TlsProtocolConsumer consumer)
public T tlsProtocol()
public T tlsProtocol(TlsProtocolSupplier supplier)
public String appName()
public T appName(String value)
public Boolean disabledDueToFailure()
public T disabledDueToFailure(Boolean value)
public SyslogHandler.Facility facility()
public T facility(SyslogHandler.Facility value)
public Integer failureCount()
public T failureCount(Integer value)
public String formatter()
public Integer maxFailureCount()
public T maxFailureCount(Integer value)
public Integer maxLength()
public T maxLength(Integer value)
public SyslogHandler.SyslogFormat syslogFormat()
public T syslogFormat(SyslogHandler.SyslogFormat value)
public Boolean truncate()
Copyright © 2020 JBoss by Red Hat. All rights reserved.