public class GlobalCustomFieldsJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractJsonProvider<Event> implements JsonFactoryAware
| Constructor and Description |
|---|
GlobalCustomFieldsJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomFields() |
com.fasterxml.jackson.databind.JsonNode |
getCustomFieldsNode() |
void |
setCustomFields(String customFields) |
void |
setCustomFieldsNode(com.fasterxml.jackson.databind.JsonNode customFields) |
void |
setJsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory) |
void |
start() |
void |
writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
Writes information about the event,
to the given generator.
|
isStarted, prepareForDeferredProcessing, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic void writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
throws IOException
JsonProviderwriteTo in interface JsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>IOExceptionpublic void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class AbstractJsonProvider<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>public void setCustomFields(String customFields)
public String getCustomFields()
public com.fasterxml.jackson.databind.JsonNode getCustomFieldsNode()
public void setCustomFieldsNode(com.fasterxml.jackson.databind.JsonNode customFields)
public void setJsonFactory(com.fasterxml.jackson.core.JsonFactory jsonFactory)
setJsonFactory in interface JsonFactoryAwareCopyright © 2018. All rights reserved.