public class EventJsonLayout extends AbstractJsonLayout<ch.qos.logback.classic.spi.ILoggingEvent>
ILoggingEvent.| Constructor and Description |
|---|
EventJsonLayout(JsonFormatter jsonFormatter,
TimestampFormatter timestampFormatter,
ch.qos.logback.classic.pattern.ThrowableHandlingConverter throwableProxyConverter,
Set<EventAttribute> includes,
Map<String,String> customFieldNames,
Map<String,Object> additionalFields,
Set<String> includesMdcKeys,
boolean flattenMdc) |
| Modifier and Type | Method and Description |
|---|---|
Set<EventAttribute> |
getIncludes() |
Set<String> |
getIncludesMdcKeys() |
String |
getJsonProtocolVersion() |
void |
setIncludes(Set<EventAttribute> includes) |
void |
setIncludesMdcKeys(Set<String> includesMdcKeys) |
void |
setJsonProtocolVersion(String jsonProtocolVersion) |
void |
start() |
void |
stop() |
protected Map<String,Object> |
toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent event)
Converts the provided logging event to a generic
Map |
doLayoutgetContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeaderaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerpublic EventJsonLayout(JsonFormatter jsonFormatter, TimestampFormatter timestampFormatter, ch.qos.logback.classic.pattern.ThrowableHandlingConverter throwableProxyConverter, Set<EventAttribute> includes, Map<String,String> customFieldNames, Map<String,Object> additionalFields, Set<String> includesMdcKeys, boolean flattenMdc)
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>protected Map<String,Object> toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent event)
AbstractJsonLayoutMaptoJsonMap in class AbstractJsonLayout<ch.qos.logback.classic.spi.ILoggingEvent>public Set<EventAttribute> getIncludes()
public void setIncludes(Set<EventAttribute> includes)
Copyright © 2011. All rights reserved.