public class SyslogConfig extends Object
Modifier and Type | Field and Description |
---|---|
(package private) Optional<String> |
appName
The app name used when formatting the message in RFC5424 format
|
(package private) AsyncConfig |
async
Syslog async logging config
|
(package private) boolean |
blockOnReconnect
Enables or disables blocking when attempting to reconnect a
TCP or SSL TCP protocol |
(package private) boolean |
enable
If syslog logging should be enabled
|
(package private) InetSocketAddress |
endpoint
The IP address and port of the syslog server
|
(package private) org.jboss.logmanager.handlers.SyslogHandler.Facility |
facility
Sets the facility used when calculating the priority of the message as defined by RFC-5424 and RFC-3164
|
(package private) String |
format
The log message format
|
(package private) Optional<String> |
hostname
The name of the host the messages are being sent from
|
(package private) Level |
level
The log level specifying, which message levels will be logged by syslog logger
|
(package private) org.jboss.logmanager.handlers.SyslogHandler.Protocol |
protocol
Sets the protocol used to connect to the syslog server
|
(package private) org.jboss.logmanager.handlers.SyslogHandler.SyslogType |
syslogType
Set the
syslog type this handler should use to format the message sent |
(package private) boolean |
truncate
Set to
true if the message should be truncated |
(package private) boolean |
useCountingFraming
Set to
true if the message being sent should be prefixed with the size of the message |
Constructor and Description |
---|
SyslogConfig() |
@ConfigItem boolean enable
@ConfigItem(defaultValue="localhost:514") InetSocketAddress endpoint
@ConfigItem Optional<String> appName
@ConfigItem Optional<String> hostname
@ConfigItem(defaultValue="user-level") org.jboss.logmanager.handlers.SyslogHandler.Facility facility
@ConfigItem(defaultValue="rfc5424") org.jboss.logmanager.handlers.SyslogHandler.SyslogType syslogType
syslog type
this handler should use to format the message sent@ConfigItem(defaultValue="tcp") org.jboss.logmanager.handlers.SyslogHandler.Protocol protocol
@ConfigItem boolean useCountingFraming
true
if the message being sent should be prefixed with the size of the message@ConfigItem(defaultValue="true") boolean truncate
true
if the message should be truncated@ConfigItem boolean blockOnReconnect
TCP
or SSL TCP
protocol@ConfigItem(defaultValue="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] (%t) %s%e%n") String format
@ConfigItem(defaultValue="ALL") Level level
AsyncConfig async
Copyright © 2020 JBoss by Red Hat. All rights reserved.