public class ArgumentsJsonProvider extends AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
ILoggingEvent.getArgumentArray() in the JSON output.
Arguments that are an instance of StructuredArgument will be output
as specified by StructuredArgument.writeTo(JsonGenerator).
Non-StructuredArguments will be omitted unless includeNonStructuredArguments is true.
When true, they will be included in the JSON output as separate fields
whose names are nonStructuredArgumentsFieldPrefix plus the argument index.
(For example, "arg0").
| Constructor and Description |
|---|
ArgumentsJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNonStructuredArgumentsFieldPrefix() |
boolean |
isIncludeNonStructuredArguments() |
void |
setIncludeNonStructuredArguments(boolean includeArgumentWithNoKey) |
void |
setNonStructuredArgumentsFieldPrefix(String argumentWithNoKeyPrefix) |
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, setFieldNameisStarted, prepareForDeferredProcessing, start, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic void writeTo(com.fasterxml.jackson.core.JsonGenerator generator,
ch.qos.logback.classic.spi.ILoggingEvent event)
throws IOException
JsonProviderIOExceptionpublic boolean isIncludeNonStructuredArguments()
public void setIncludeNonStructuredArguments(boolean includeArgumentWithNoKey)
public String getNonStructuredArgumentsFieldPrefix()
public void setNonStructuredArgumentsFieldPrefix(String argumentWithNoKeyPrefix)
Copyright © 2017. All Rights Reserved.