Top Fields Constructors Methods
ch.qos.logback.classic.spi

public Class LoggerContextAwareBase

extends ContextAwareBase
implements LoggerContextAware
Class Inheritance
All Implemented Interfaces
ch.qos.logback.classic.spi.LoggerContextAware, ch.qos.logback.core.spi.ContextAware
Imports
ch.qos.logback.classic.LoggerContext, ch.qos.logback.core.Context, ch.qos.logback.core.spi.ContextAwareBase

Field Summary

Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LoggerContext

Returns:

The owning LoggerContext
getLoggerContext
()

Return the LoggerContext this component is attached to.

public void
public void
setLoggerContext(LoggerContext
The context where this component is attached.
context
)

Implements ch.qos.logback.classic.spi.LoggerContextAware.setLoggerContext.

Set the owning context.
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextgetDeclaredOrigingetStatusManager

Constructor Detail

LoggerContextAwareBaseback to summary
public LoggerContextAwareBase()

Method Detail

getLoggerContextback to summary
public LoggerContext getLoggerContext()

Return the LoggerContext this component is attached to.

Returns:LoggerContext

The owning LoggerContext

setContextback to summary
public void setContext(Context context)

Overrides ch.qos.logback.core.spi.ContextAwareBase.setContext.

Implements ch.qos.logback.core.spi.ContextAware.setContext.

setLoggerContextback to summary
public void setLoggerContext(LoggerContext context)

Implements ch.qos.logback.classic.spi.LoggerContextAware.setLoggerContext.

Set the owning context. The owning context cannot be set more than once.

Parameters
context:LoggerContext

Doc from ch.qos.logback.classic.spi.LoggerContextAware.setLoggerContext.

The context where this component is attached.