Class ThrowableRootCauseMessageJsonProvider
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<Event>
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 ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.logstash.logback.composite.loggingevent.AbstractThrowableMessageJsonProvider
writeToMethods inherited from class net.logstash.logback.composite.AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class net.logstash.logback.composite.AbstractJsonProvider
assertIsStarted, isStarted, prepareForDeferredProcessing, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.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
-