@ConfigRoot(phase=RUN_TIME, name="log.handler.gelf") public class GelfConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,AdditionalFieldConfig> |
additionalField
Post additional fields.
|
boolean |
enabled
Determine whether to enable the GELF logging handler
|
boolean |
extractStackTrace
Whether to post Stack-Trace to StackTrace field.
|
String |
facility
Name of the facility.
|
boolean |
filterStackTrace
Whether to perform Stack-Trace filtering
|
String |
host
Hostname/IP-Address of the Logstash/Graylog Host
By default it uses UDP, prepend tcp: to the hostname to switch to TCP, example: "tcp:localhost"
|
boolean |
includeFullMdc
Whether to include all fields from the MDC.
|
boolean |
includeLocation
Include source code location
|
boolean |
includeLogMessageParameters
Include message parameters from the log event
|
Level |
level
The logging-gelf log level.
|
int |
maximumMessageSize
Maximum message size (in bytes).
|
int |
port
The port
|
int |
stackTraceThrowableReference
Only used when `extractStackTrace` is `true`.
|
String |
timestampPattern
Java date pattern, see
SimpleDateFormat |
String |
version
GELF version: 1.0 or 1.1
|
| Constructor and Description |
|---|
GelfConfig() |
@ConfigItem public boolean enabled
@ConfigItem(defaultValue="localhost") public String host
@ConfigItem(defaultValue="12201") public int port
@ConfigItem(defaultValue="1.1") public String version
@ConfigItem(defaultValue="true") public boolean extractStackTrace
@ConfigItem public int stackTraceThrowableReference
@ConfigItem public boolean filterStackTrace
@ConfigItem(defaultValue="yyyy-MM-dd HH:mm:ss,SSS") public String timestampPattern
SimpleDateFormat@ConfigItem(defaultValue="ALL") public Level level
@ConfigItem(defaultValue="jboss-logmanager") public String facility
@ConfigItem @ConfigDocMapKey(value="field-name") @ConfigDocSection public Map<String,AdditionalFieldConfig> additionalField
quarkus.log.handler.gelf.additional-field.field1.value=value1 quarkus.log.handler.gelf.additional-field.field1.type=String
@ConfigItem public boolean includeFullMdc
@ConfigItem(defaultValue="8192") public int maximumMessageSize
@ConfigItem(defaultValue="true") public boolean includeLogMessageParameters
@ConfigItem(defaultValue="true") public boolean includeLocation
Copyright © 2021 JBoss by Red Hat. All rights reserved.