Package ch.qos.logback.classic.spi
Class LoggerContextAwareBase
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.spi.LoggerContextAwareBase
- All Implemented Interfaces:
LoggerContextAware
,ContextAware
@Deprecated(since="2022-01-27")
public class LoggerContextAwareBase
extends ContextAwareBase
implements LoggerContextAware
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return theLoggerContext
this component is attached to.void
setContext
(Context context) Deprecated.void
setLoggerContext
(LoggerContext context) Deprecated.Set the owning context.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager
Methods inherited from class java.lang.Object
equals, 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()Deprecated.
-
-
Method Details
-
setLoggerContext
Deprecated.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
Deprecated.- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getLoggerContext
Deprecated.Return theLoggerContext
this component is attached to.- Returns:
- The owning LoggerContext
-