Class ThrowableRootCauseClassNameJsonProvider
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.AbstractThrowableClassNameJsonProvider
net.logstash.logback.composite.loggingevent.ThrowableRootCauseClassNameJsonProvider
- All Implemented Interfaces:
ContextAware, JsonProvider<ILoggingEvent>
Logs the class name 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
Modifier and TypeMethodDescriptionprotected IThrowableProxygetThrowable(IThrowableProxy throwable) Methods inherited from class AbstractThrowableClassNameJsonProvider
setUseSimpleClassName, 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
-
ThrowableRootCauseClassNameJsonProvider
public ThrowableRootCauseClassNameJsonProvider()
-
-
Method Details
-
getThrowable
- Specified by:
getThrowablein classAbstractThrowableClassNameJsonProvider- Returns:
- null if no appropriate throwable
-