Class ThrowableRootCauseMessageJsonProvider
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<ILoggingEvent>
net.logstash.logback.composite.AbstractFieldJsonProvider<ILoggingEvent>
net.logstash.logback.composite.loggingevent.AbstractThrowableMessageJsonProvider
net.logstash.logback.composite.loggingevent.ThrowableRootCauseMessageJsonProvider
- All Implemented Interfaces:
ContextAware, JsonProvider<ILoggingEvent>
Logs the message of the innermost cause of the throwable associated with a
given logging event, if any. The root cause may be the throwable itself, if
it has no cause.
-
Field Summary
Fields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractThrowableMessageJsonProvider
writeToMethods inherited from class AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class AbstractJsonProvider
assertIsStarted, isStarted, prepareForDeferredProcessing, start, stopMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
ThrowableRootCauseMessageJsonProvider
public ThrowableRootCauseMessageJsonProvider()
-
-
Method Details
-
getThrowable
- Specified by:
getThrowablein classAbstractThrowableMessageJsonProvider- Parameters:
event- the event being logged, nevernull- Returns:
- the throwable to use, or
nullif no appropriate throwable is available
-