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(java.lang.String name,
LoggerContext context)
Creates a new named logger for a given
LoggerContext . |
close, getContext, getLogger, getLoggersInContext
protected org.apache.commons.logging.Log newLogger(java.lang.String name, LoggerContext context)
AbstractLoggerAdapter
LoggerContext
.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()
AbstractLoggerAdapter
LoggerContext
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)