public class SequenceJsonProvider<Event extends DeferredProcessingAware> extends AbstractFieldJsonProvider<Event>
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_SEQUENCE |
context
Constructor and Description |
---|
SequenceJsonProvider() |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(JsonGenerator generator,
Event iLoggingEvent)
Writes information about the event, to the given generator.
|
getFieldName, setFieldName
isStarted, prepareForDeferredProcessing, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final String FIELD_SEQUENCE
public void writeTo(JsonGenerator generator, Event iLoggingEvent) throws IOException
JsonProvider
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.
generator
- the JsonGenerator
to produce JSON contentiLoggingEvent
- the event to convert into JSONIOException
- if an I/O error occursCopyright © 2013–2022. All rights reserved.