Event - type of event (ILoggingEvent or IAccessEvent).public class ContextJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractFieldJsonProvider<Event> implements FieldNamesAware<LogstashCommonFieldNames>
Context into the JSON event.
If the fieldName is set, then the properties will be written
to that field as a subobject.
Otherwise, the properties are written inline.| Constructor and Description |
|---|
ContextJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
setFieldNames(LogstashCommonFieldNames fieldNames) |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
Writes information about the event,
to the given generator.
|
getFieldName, setFieldNameisStarted, prepareForDeferredProcessing, start, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic 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 void setFieldNames(LogstashCommonFieldNames fieldNames)
setFieldNames in interface FieldNamesAware<LogstashCommonFieldNames>Copyright © 2017. All Rights Reserved.