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, setFieldName
isStarted, prepareForDeferredProcessing, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final String FIELD_VERSION
public static final String DEFAULT_VERSION
public void writeTo(JsonGenerator generator, Event event) throws IOException
JsonProvider
writeTo
in interface JsonProvider<Event extends 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 © 2020. All rights reserved.