public class LogAdapter extends AbstractLoggerAdapter<org.apache.commons.logging.Log>
registry| Constructor and Description |
|---|
LogAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected LoggerContext |
getContext()
Gets the
LoggerContext that should be used to look up or create loggers. |
protected org.apache.commons.logging.Log |
newLogger(String name,
LoggerContext context)
Creates a new named logger for a given
LoggerContext. |
close, getContext, getLogger, getLoggersInContextprotected org.apache.commons.logging.Log newLogger(String name, LoggerContext context)
AbstractLoggerAdapterLoggerContext.newLogger in class AbstractLoggerAdapter<org.apache.commons.logging.Log>name - the name of the logger to createcontext - the LoggerContext this logger will be associated withprotected LoggerContext getContext()
AbstractLoggerAdapterLoggerContext that should be used to look up or create loggers. This is similar in spirit to the
ContextSelector class in log4j-core. However, implementations can rely on their own framework's
separation of contexts instead (or simply use a singleton).getContext in class AbstractLoggerAdapter<org.apache.commons.logging.Log>LogManager.getContext(ClassLoader, boolean),
LogManager.getContext(String, boolean)Copyright © 1999-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.