Package io.quarkus.runtime.logging
Interface LogRuntimeConfig.SyslogConfig
- Enclosing interface:
LogRuntimeConfig
public static interface LogRuntimeConfig.SyslogConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSyslog counting framing type used for smarter handling of counting framing value. -
Method Summary
Modifier and TypeMethodDescriptionappName()The app name used when formatting the message in RFC5424 formatasync()Syslog async logging configbooleanEnables or disables blocking when attempting to reconnect aTCPorSSL TCPprotocolenable()Deprecated, for removal: This API element is subject to removal in a future version.booleanenabled()If syslog logging should be enabled@WithConverter(InetSocketAddressConverter.class) InetSocketAddressendpoint()The IP address and port of the Syslog serverorg.jboss.logmanager.handlers.SyslogHandler.Facilityfacility()Sets the facility used when calculating the priority of the message as defined by RFC-5424 and RFC-3164filter()The name of the filter to link to the file handler.format()The log message formathostname()The name of the host the messages are being sent from@WithConverter(LevelConverter.class) Levellevel()The log level specifying what message levels will be logged by the Syslog loggerOptional<@WithConverter(MemorySizeConverter.class) MemorySize> The maximum length, in bytes, of the message allowed to be sent, up toInteger.MAX_VALUEbytes.org.jboss.logmanager.handlers.SyslogHandler.Protocolprotocol()Sets the protocol used to connect to the Syslog serverorg.jboss.logmanager.handlers.SyslogHandler.SyslogTypeSet thesyslog typethis handler should use to format the message sentbooleantruncate()Set totrueto truncate the message if it exceeds maximum lengthIf enabled, the message being sent is prefixed with the size of the message
-
Method Details
-
enabled
@WithDefault("false") boolean enabled()If syslog logging should be enabled -
enable
Deprecated, for removal: This API element is subject to removal in a future version.usequarkus.log.syslog.enabledinsteadIf syslog logging should be enabled -
endpoint
@WithDefault("localhost:514") @WithConverter(InetSocketAddressConverter.class) @WithConverter(InetSocketAddressConverter.class) InetSocketAddress endpoint()The IP address and port of the Syslog server -
appName
The app name used when formatting the message in RFC5424 format -
hostname
The name of the host the messages are being sent from -
facility
@WithDefault("user-level") 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 -
syslogType
@WithDefault("rfc5424") org.jboss.logmanager.handlers.SyslogHandler.SyslogType syslogType()Set thesyslog typethis handler should use to format the message sent -
protocol
@WithDefault("tcp") org.jboss.logmanager.handlers.SyslogHandler.Protocol protocol()Sets the protocol used to connect to the Syslog server -
useCountingFraming
@WithDefault("protocol-dependent") LogRuntimeConfig.SyslogConfig.CountingFraming useCountingFraming()If enabled, the message being sent is prefixed with the size of the message -
truncate
@WithDefault("true") boolean truncate()Set totrueto truncate the message if it exceeds maximum length -
blockOnReconnect
@WithDefault("false") boolean blockOnReconnect()Enables or disables blocking when attempting to reconnect aTCPorSSL TCPprotocol -
format
The log message format -
level
@WithDefault("ALL") @WithConverter(LevelConverter.class) @WithConverter(LevelConverter.class) Level level()The log level specifying what message levels will be logged by the Syslog logger -
filter
The name of the filter to link to the file handler. -
maxLength
Optional<@WithConverter(MemorySizeConverter.class) MemorySize> maxLength()The maximum length, in bytes, of the message allowed to be sent, up toInteger.MAX_VALUEbytes. The length includes the header and the message.If not set, the default value is
2048whensys-log-typeisrfc5424(which is the default) and1024whensys-log-typeisrfc3164 -
async
LogRuntimeConfig.AsyncConfig async()Syslog async logging config
-
quarkus.log.syslog.enabledinstead