Top Methods
ch.qos.logback.classic.spi

public Interface LoggerContextAware

extends ContextAware
Known Direct Implementers
ch.qos.logback.classic.spi.LoggerContextAwareBase
Imports
ch.qos.logback.classic.LoggerContext, ch.qos.logback.core.spi.ContextAware

Method Summary

Modifier and TypeMethod and Description
public void
setLoggerContext(LoggerContext
The context where this component is attached.
context
)

Set owning logger context for this component.

Inherited from ch.qos.logback.core.spi.ContextAware:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextsetContext

Method Detail

setLoggerContextback to summary
public void setLoggerContext(LoggerContext context)

Set owning logger context for this component. This operation can only be performed once. Once set, the owning context cannot be changed.

Parameters
context:LoggerContext

The context where this component is attached.

Exceptions
IllegalStateException:
If you try to change the context after it has been set.