private static class Category.PrivateAdapter extends AbstractLoggerAdapter<Logger>
registry| Modifier | Constructor and Description |
|---|---|
private |
PrivateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected LoggerContext |
getContext()
Gets the
LoggerContext that should be used to look up or create loggers. |
protected Logger |
newLogger(java.lang.String name,
LoggerContext context)
Creates a new named logger for a given
LoggerContext. |
close, getContext, getLogger, getLoggersInContextprotected Logger newLogger(java.lang.String name, LoggerContext context)
AbstractLoggerAdapterLoggerContext.newLogger in class AbstractLoggerAdapter<Logger>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<Logger>LogManager.getContext(ClassLoader, boolean),
LogManager.getContext(String, boolean)