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-StructuredArgument
s 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, setFieldName
isStarted, prepareForDeferredProcessing, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event) throws IOException
JsonProvider
IOException
public boolean isIncludeNonStructuredArguments()
public void setIncludeNonStructuredArguments(boolean includeArgumentWithNoKey)
public String getNonStructuredArgumentsFieldPrefix()
public void setNonStructuredArgumentsFieldPrefix(String argumentWithNoKeyPrefix)
Copyright © 2016. All Rights Reserved.