public class SkyWalkingContextJsonProvider
extends net.logstash.logback.composite.AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
implements net.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>
| Modifier and Type | Field and Description |
|---|---|
static String |
SKYWALKING_CONTEXT |
| Constructor and Description |
|---|
SkyWalkingContextJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSkyWalkingContext(ch.qos.logback.classic.spi.ILoggingEvent event) |
void |
setFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames) |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.ILoggingEvent event) |
getFieldName, setFieldNameisStarted, prepareForDeferredProcessing, start, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final String SKYWALKING_CONTEXT
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.ILoggingEvent event)
throws IOException
writeTo in interface net.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>IOExceptionpublic void setFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames)
setFieldNames in interface net.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>public String getSkyWalkingContext(ch.qos.logback.classic.spi.ILoggingEvent event)
Copyright © 2021 The Apache Software Foundation. All rights reserved.