Package net.logstash.logback.composite
Class SequenceJsonProvider<Event extends DeferredProcessingAware>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<Event>
net.logstash.logback.composite.AbstractFieldJsonProvider<Event>
net.logstash.logback.composite.SequenceJsonProvider<Event>
- All Implemented Interfaces:
ContextAware,JsonProvider<Event>
public class SequenceJsonProvider<Event extends DeferredProcessingAware>
extends AbstractFieldJsonProvider<Event>
Deprecated.
Outputs an incrementing sequence number.
Useful for determining if log events get lost along the transport chain.
-
Field Summary
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(JsonGenerator generator, Event iLoggingEvent) Deprecated.Writes information about the event, to the given generator.Methods inherited from class net.logstash.logback.composite.AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class net.logstash.logback.composite.AbstractJsonProvider
assertIsStarted, 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
-
FIELD_SEQUENCE
Deprecated.- See Also:
-
-
Constructor Details
-
SequenceJsonProvider
public SequenceJsonProvider()Deprecated.
-
-
Method Details
-
writeTo
Deprecated.Description copied from interface:JsonProviderWrites information about the event, to the given generator.When called, the generator is assumed to be within a JSON object context (i.e. this provider should write fields and their values to the generator). Upon return, the generator should be within the same JSON object context.
- Parameters:
generator- theJsonGeneratorto produce JSON contentiLoggingEvent- the event to convert into JSON- Throws:
IOException- if an I/O error occurs
-
SequenceJsonProviderorSequenceJsonProviderinstead.