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
-
Method Summary
Modifier and TypeMethodDescriptionReturn theLoggerContext
this component is attached to.void
setContext
(Context context) void
setLoggerContext
(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, getStatusManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setLoggerContext
in interfaceLoggerContextAware
- Parameters:
context
- The context where this component is attached.
-
setContext
- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getLoggerContext
Return theLoggerContext
this component is attached to.- Returns:
- The owning LoggerContext
-