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 Constructor Description LoggerContextAwareBase()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LoggerContext
getLoggerContext()
Deprecated.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
-
-
-
-
Method Detail
-
setLoggerContext
public void setLoggerContext(LoggerContext context)
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
public void setContext(Context context)
Deprecated.- Specified by:
setContext
in interfaceContextAware
- Overrides:
setContext
in classContextAwareBase
-
getLoggerContext
public LoggerContext getLoggerContext()
Deprecated.Return theLoggerContext
this component is attached to.- Returns:
- The owning LoggerContext
-
-