public class MdcGelfMessageAssembler extends GelfMessageAssembler
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_DYNAMIC_MDC_FIELD |
static String |
PROPERTY_INCLUDE_FULL_MDC |
static String |
PROPERTY_MDC_FIELD |
static String |
PROPERTY_MDC_PROFILING |
FIELD_MESSAGE_PARAM, FIELD_STACK_TRACE, PROPERTY_USE_POOLING
Constructor and Description |
---|
MdcGelfMessageAssembler() |
Modifier and Type | Method and Description |
---|---|
GelfMessage |
createGelfMessage(LogEvent logEvent)
Produce a
GelfMessage . |
void |
initialize(PropertyProvider propertyProvider)
Initialize the
GelfMessageAssembler from a property provider. |
boolean |
isIncludeFullMdc() |
boolean |
isMdcProfiling() |
void |
setIncludeFullMdc(boolean includeFullMdc) |
void |
setMdcProfiling(boolean mdcProfiling) |
addField, addFields, getExtractStackTrace, getFacility, getHost, getMaximumMessageSize, getOriginHost, getPort, getTimestampPattern, getVersion, isExtractStackTrace, isFilterStackTrace, isIncludeLocation, isIncludeLogMessageParameters, setAdditionalFieldType, setDynamicMdcFieldType, setDynamicMdcFieldType, setExtractStackTrace, setExtractStackTrace, setFacility, setFilterStackTrace, setHost, setIncludeLocation, setIncludeLogMessageParameters, setMaximumMessageSize, setOriginHost, setPort, setTimestampPattern, setVersion
public static final String PROPERTY_MDC_PROFILING
public static final String PROPERTY_INCLUDE_FULL_MDC
public static final String PROPERTY_MDC_FIELD
public static final String PROPERTY_DYNAMIC_MDC_FIELD
public void initialize(PropertyProvider propertyProvider)
GelfMessageAssembler
GelfMessageAssembler
from a property provider.initialize
in class GelfMessageAssembler
propertyProvider
- property provider to obtain configuration propertiespublic GelfMessage createGelfMessage(LogEvent logEvent)
GelfMessageAssembler
GelfMessage
.createGelfMessage
in class GelfMessageAssembler
logEvent
- the log eventpublic boolean isMdcProfiling()
public void setMdcProfiling(boolean mdcProfiling)
public boolean isIncludeFullMdc()
public void setIncludeFullMdc(boolean includeFullMdc)
Copyright © 2013–2023. All rights reserved.