Event - type of event (ILoggingEvent or IAccessEvent).public class LogstashVersionJsonProvider<Event extends 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 |
context| 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(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, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final String FIELD_VERSION
public static final String DEFAULT_VERSION
public void writeTo(JsonGenerator generator, Event event) throws IOException
JsonProviderwriteTo in interface JsonProvider<Event extends DeferredProcessingAware>IOExceptionpublic 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.