Module logstash.logback.encoder
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 ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IThrowableProxygetThrowable(IThrowableProxy throwable) Methods inherited from class net.logstash.logback.composite.loggingevent.AbstractThrowableClassNameJsonProvider
setUseSimpleClassName, 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
-
ThrowableRootCauseClassNameJsonProvider
public ThrowableRootCauseClassNameJsonProvider()
-
-
Method Details
-
getThrowable
- Specified by:
getThrowablein classAbstractThrowableClassNameJsonProvider- Returns:
- null if no appropriate throwable
-