public class MessageJsonProvider extends AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent> implements FieldNamesAware<LogstashFieldNames>
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_MESSAGE |
Constructor and Description |
---|
MessageJsonProvider() |
Modifier and Type | Method and Description |
---|---|
void |
setFieldNames(LogstashFieldNames fieldNames) |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.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
public static final String FIELD_MESSAGE
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event) throws IOException
JsonProvider
writeTo
in interface JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
IOException
public void setFieldNames(LogstashFieldNames fieldNames)
setFieldNames
in interface FieldNamesAware<LogstashFieldNames>
Copyright © 2019. All rights reserved.