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 theLoggerContextthis component is attached to.voidsetContext(Context context) Deprecated.voidsetLoggerContext(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, getStatusManagerMethods inherited from class java.lang.Object
equals, 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()Deprecated.
-
-
Method Details
-
setLoggerContext
Deprecated.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
Deprecated.- Specified by:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
getLoggerContext
Deprecated.Return theLoggerContextthis component is attached to.- Returns:
- The owning LoggerContext
-