public class TagsJsonProvider extends AbstractFieldJsonProvider<ILoggingEvent> implements FieldNamesAware<LogstashFieldNames>
Marker
names as an array to the 'tags' field.
Does not write any special LogstashMarker
s
(Those are handled by LogstashMarkersJsonProvider
).Modifier and Type | Field and Description |
---|---|
static String |
FIELD_TAGS |
context
Constructor and Description |
---|
TagsJsonProvider() |
Modifier and Type | Method and Description |
---|---|
void |
setFieldNames(LogstashFieldNames fieldNames) |
void |
writeTo(JsonGenerator generator,
ILoggingEvent 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_TAGS
public void writeTo(JsonGenerator generator, ILoggingEvent event) throws IOException
JsonProvider
writeTo
in interface JsonProvider<ILoggingEvent>
IOException
public void setFieldNames(LogstashFieldNames fieldNames)
setFieldNames
in interface FieldNamesAware<LogstashFieldNames>
Copyright © 2020. All rights reserved.