public class StackHashJsonProvider extends AbstractFieldJsonProvider<ILoggingEvent>
stack_hash Json field on a log with a stack trace
This hash is computed using StackHasher
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_NAME |
context| Constructor and Description |
|---|
StackHashJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExclude(String exclusionPattern) |
List<String> |
getExcludes() |
void |
setExcludes(List<String> exclusionPatterns) |
void |
setExclusions(String comaSeparatedPatterns)
Set exclusion patterns as a list of coma separated patterns
|
void |
start()
Start the provider after all configuration properties are set.
|
void |
writeTo(JsonGenerator generator,
ILoggingEvent event)
Writes information about the event, to the given generator.
|
getFieldName, setFieldNameisStarted, prepareForDeferredProcessing, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic static final String FIELD_NAME
public void start()
JsonProviderstart in interface JsonProvider<ILoggingEvent>start in class AbstractJsonProvider<ILoggingEvent>public void addExclude(String exclusionPattern)
public void setExclusions(String comaSeparatedPatterns)
comaSeparatedPatterns - list of coma separated patternspublic void writeTo(JsonGenerator generator, ILoggingEvent event) throws IOException
JsonProviderWhen called, the generator is assumed to be within a JSON object context (i.e. this provider should write fields and their values to the generator). Upon return, the generator should be within the same JSON object context.
generator - the JsonGenerator to produce JSON contentevent - the event to convert into JSONIOException - if an I/O error occursCopyright © 2013–2021. All rights reserved.