java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.spi.LoggerContextAwareBase
- All Implemented Interfaces:
LoggerContextAware,ContextAware
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theLoggerContextthis component is attached to.voidsetContext(Context context) voidsetLoggerContext(LoggerContext context) Set the owning context.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManagerMethods 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
-
Constructor Details
-
LoggerContextAwareBase
public LoggerContextAwareBase()
-
-
Method Details
-
setLoggerContext
Set the owning context. The owning context cannot be set more than once.- Specified by:
setLoggerContextin interfaceLoggerContextAware- Parameters:
context- The context where this component is attached.
-
setContext
- Specified by:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
getLoggerContext
Return theLoggerContextthis component is attached to.- Returns:
- The owning LoggerContext
-