public class EventJsonLayoutBaseFactory extends AbstractJsonLayoutBaseFactory<ch.qos.logback.classic.spi.ILoggingEvent>
Name | Default | Description |
---|---|---|
includes |
(level, threadName, mdc, loggerName, message, exception, timestamp, callerData) | Set of logging event attributes to include in the JSON map. |
includesMdcKeys |
(empty) | Set of MDC keys which should be included in the JSON map. By default includes everything. |
flattenMdc |
false |
Whether the MDC should be included under the key "mdc" or flattened into the map. |
Constructor and Description |
---|
EventJsonLayoutBaseFactory() |
Modifier and Type | Method and Description |
---|---|
ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent> |
build(ch.qos.logback.classic.LoggerContext context,
TimeZone timeZone)
Creates a
LayoutBase of type E |
protected ch.qos.logback.classic.pattern.ThrowableHandlingConverter |
createThrowableProxyConverter(ch.qos.logback.classic.LoggerContext context) |
ExceptionFormat |
getExceptionFormat() |
EnumSet<EventAttribute> |
getIncludes() |
Set<String> |
getIncludesMdcKeys() |
boolean |
isFlattenMdc() |
void |
setExceptionFormat(ExceptionFormat exceptionFormat) |
void |
setFlattenMdc(boolean flattenMdc) |
void |
setIncludes(EnumSet<EventAttribute> includes) |
void |
setIncludesMdcKeys(Set<String> includesMdcKeys) |
createDropwizardJsonFormatter, createTimestampFormatter, getAdditionalFields, getCustomFieldNames, getTimestampFormat, isAppendLineSeparator, isPrettyPrint, setAdditionalFields, setAppendLineSeparator, setCustomFieldNames, setPrettyPrint, setTimestampFormat
public EnumSet<EventAttribute> getIncludes()
public void setIncludes(EnumSet<EventAttribute> includes)
public boolean isFlattenMdc()
public void setFlattenMdc(boolean flattenMdc)
public void setExceptionFormat(ExceptionFormat exceptionFormat)
@Nullable public ExceptionFormat getExceptionFormat()
public ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent> build(ch.qos.logback.classic.LoggerContext context, TimeZone timeZone)
DiscoverableLayoutFactory
LayoutBase
of type Econtext
- the Logback contexttimeZone
- the TimeZoneLayoutBase
protected ch.qos.logback.classic.pattern.ThrowableHandlingConverter createThrowableProxyConverter(ch.qos.logback.classic.LoggerContext context)
Copyright © 2019. All rights reserved.