Class SkyWalkingContextJsonProvider
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<Event>
net.logstash.logback.composite.AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
org.apache.skywalking.apm.toolkit.log.logback.v1.x.logstash.SkyWalkingContextJsonProvider
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle,net.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>,net.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
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>
-
Field Summary
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSkyWalkingContext(ch.qos.logback.classic.spi.ILoggingEvent event) voidsetFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames) voidwriteTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event) Methods inherited from class net.logstash.logback.composite.AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class net.logstash.logback.composite.AbstractJsonProvider
isStarted, prepareForDeferredProcessing, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
SKYWALKING_CONTEXT
- See Also:
-
-
Constructor Details
-
SkyWalkingContextJsonProvider
public SkyWalkingContextJsonProvider()
-
-
Method Details
-
writeTo
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event) throws IOException - Specified by:
writeToin interfacenet.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>- Throws:
IOException
-
setFieldNames
public void setFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames) - Specified by:
setFieldNamesin interfacenet.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>
-
getSkyWalkingContext
-