Package ch.qos.logback.classic.spi
Interface LoggerContextAware
-
- All Superinterfaces:
ContextAware
- All Known Implementing Classes:
LoggerContextAwareBase
@Deprecated(since="2022-01-27") public interface LoggerContextAware extends ContextAware
Deprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
setLoggerContext(LoggerContext context)
Deprecated.Set owning logger context for this component.-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
Method Detail
-
setLoggerContext
void setLoggerContext(LoggerContext context)
Deprecated.Set owning logger context for this component. This operation can only be performed once. Once set, the owning context cannot be changed.- Parameters:
context
- The context where this component is attached.- Throws:
java.lang.IllegalStateException
- If you try to change the context after it has been set.
-
-