-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLoggerContext
(LoggerContext context) 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 Details
-
setLoggerContext
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:
IllegalStateException
- If you try to change the context after it has been set.
-