public class CallerDataJsonProvider extends AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent> implements FieldNamesAware<LogstashFieldNames>
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_CALLER_CLASS_NAME |
static String |
FIELD_CALLER_FILE_NAME |
static String |
FIELD_CALLER_LINE_NUMBER |
static String |
FIELD_CALLER_METHOD_NAME |
Constructor and Description |
---|
CallerDataJsonProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getClassFieldName() |
String |
getFileFieldName() |
String |
getLineFieldName() |
String |
getMethodFieldName() |
void |
prepareForDeferredProcessing(ch.qos.logback.classic.spi.ILoggingEvent event)
Gives the provider a chance to perform more deferred processing
(in addition to what is already provided by
DeferredProcessingAware.prepareForDeferredProcessing() ). |
void |
setClassFieldName(String callerClassFieldName) |
void |
setFieldNames(LogstashFieldNames fieldNames) |
void |
setFileFieldName(String callerFileFieldName) |
void |
setLineFieldName(String callerLineFieldName) |
void |
setMethodFieldName(String callerMethodFieldName) |
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, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public static final String FIELD_CALLER_CLASS_NAME
public static final String FIELD_CALLER_METHOD_NAME
public static final String FIELD_CALLER_FILE_NAME
public static final String FIELD_CALLER_LINE_NUMBER
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 prepareForDeferredProcessing(ch.qos.logback.classic.spi.ILoggingEvent event)
JsonProvider
DeferredProcessingAware.prepareForDeferredProcessing()
).prepareForDeferredProcessing
in interface JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
prepareForDeferredProcessing
in class AbstractJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
public void setFieldNames(LogstashFieldNames fieldNames)
setFieldNames
in interface FieldNamesAware<LogstashFieldNames>
public String getClassFieldName()
public void setClassFieldName(String callerClassFieldName)
public String getMethodFieldName()
public void setMethodFieldName(String callerMethodFieldName)
public String getFileFieldName()
public void setFileFieldName(String callerFileFieldName)
public String getLineFieldName()
public void setLineFieldName(String callerLineFieldName)
Copyright © 2019. All rights reserved.