Event - type of event (ILoggingEvent or IAccessEvent).public abstract class AbstractNestedJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractFieldJsonProvider<Event> implements JsonFactoryAware
JsonProvider that nests other providers within a subobject.| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_NESTED |
| Constructor and Description |
|---|
AbstractNestedJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
JsonProviders<Event> |
getProviders() |
void |
prepareForDeferredProcessing(Event event)
Gives the provider a chance to perform more deferred processing
(in addition to what is already provided by
DeferredProcessingAware.prepareForDeferredProcessing()). |
void |
setJsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory) |
void |
setProviders(JsonProviders<Event> jsonProviders) |
void |
start() |
void |
stop() |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
Writes information about the event,
to the given generator.
|
getFieldName, setFieldNameisStartedaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final String FIELD_NESTED
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class AbstractJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class AbstractJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
throws IOException
JsonProviderwriteTo in interface JsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>IOExceptionpublic JsonProviders<Event> getProviders()
public void setProviders(JsonProviders<Event> jsonProviders)
public void setJsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory)
setJsonFactory in interface JsonFactoryAwarepublic void prepareForDeferredProcessing(Event event)
JsonProviderDeferredProcessingAware.prepareForDeferredProcessing()).prepareForDeferredProcessing in interface JsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>prepareForDeferredProcessing in class AbstractJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>Copyright © 2019. All rights reserved.