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
public class LoggerContextAwareBase
- extends ContextAwareBase
- implements LoggerContextAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerContextAwareBase
public LoggerContextAwareBase()
setLoggerContext
public void setLoggerContext(LoggerContext context)
- Set the owning context. The owning context cannot be set more than
once.
- Specified by:
setLoggerContext in interface LoggerContextAware
- Parameters:
context - The context where this component is attached.
setContext
public void setContext(Context context)
- Specified by:
setContext in interface ContextAware- Overrides:
setContext in class ContextAwareBase
getLoggerContext
public LoggerContext getLoggerContext()
- Return the
LoggerContext this component is attached to.
- Returns:
- The owning LoggerContext
Copyright © 2005-2013 QOS.ch. All Rights Reserved.