Event
- type of event (ILoggingEvent
or IAccessEvent
).public class LogstashVersionJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractFieldJsonProvider<Event> implements FieldNamesAware<LogstashCommonFieldNames>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_VERSION |
static String |
FIELD_VERSION |
Constructor and Description |
---|
LogstashVersionJsonProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getVersion() |
void |
setFieldNames(LogstashCommonFieldNames fieldNames) |
void |
setVersion(int version) |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
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
public static final String FIELD_VERSION
public static final int DEFAULT_VERSION
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator, Event event) throws IOException
JsonProvider
writeTo
in interface JsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>
IOException
public void setFieldNames(LogstashCommonFieldNames fieldNames)
setFieldNames
in interface FieldNamesAware<LogstashCommonFieldNames>
public int getVersion()
public void setVersion(int version)
Copyright © 2015. All Rights Reserved.