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 |
doLayout
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
public 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.LifeCycle
start
in class ch.qos.logback.core.LayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
public void stop()
stop
in interface ch.qos.logback.core.spi.LifeCycle
stop
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)
AbstractJsonLayout
Map
toJsonMap
in class AbstractJsonLayout<ch.qos.logback.classic.spi.ILoggingEvent>
public Set<EventAttribute> getIncludes()
public void setIncludes(Set<EventAttribute> includes)
Copyright © 2011. All rights reserved.