Event
- type of event (ILoggingEvent
or IAccessEvent
).public class LogstashVersionJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractFieldJsonProvider<Event> implements FieldNamesAware<LogstashCommonFieldNames>
isWriteAsInteger()
is true).
This is intended to be the logstash JSON format version.
By default, the version is "1".Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VERSION |
static String |
FIELD_VERSION |
Constructor and Description |
---|
LogstashVersionJsonProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getVersion() |
boolean |
isWriteAsInteger() |
boolean |
isWriteAsString()
Deprecated.
|
void |
setFieldNames(LogstashCommonFieldNames fieldNames) |
void |
setVersion(String version) |
void |
setWriteAsInteger(boolean writeAsInteger) |
void |
setWriteAsString(boolean writeAsString)
Deprecated.
|
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 String 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 String getVersion()
public void setVersion(String version)
@Deprecated public boolean isWriteAsString()
isWriteAsInteger()
@Deprecated public void setWriteAsString(boolean writeAsString)
setWriteAsInteger(boolean)
public boolean isWriteAsInteger()
public void setWriteAsInteger(boolean writeAsInteger)
Copyright © 2019. All rights reserved.