public class LogstashMarkersJsonProvider extends AbstractJsonProvider<ILoggingEvent>
context
Constructor and Description |
---|
LogstashMarkersJsonProvider() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLogstashMarker(org.slf4j.Marker marker) |
void |
writeTo(JsonGenerator generator,
ILoggingEvent event)
Writes information about the event, to the given generator.
|
isStarted, prepareForDeferredProcessing, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public void writeTo(JsonGenerator generator, ILoggingEvent event) throws IOException
JsonProvider
When 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 occurspublic static boolean isLogstashMarker(org.slf4j.Marker marker)
Copyright © 2013–2021. All rights reserved.