Closeable
, AutoCloseable
, LoggerAdapter<Logger>
ApiLoggerAdapter
, CoreLoggerAdapter
public abstract class AbstractLoggerAdapter extends AbstractLoggerAdapter<Logger>
ApiLoggerAdapter
and CoreLoggerAdapter
.registry
Constructor | Description |
---|---|
AbstractLoggerAdapter() |
Modifier and Type | Method | Description |
---|---|---|
protected LoggerContext |
getContext() |
Gets the
LoggerContext that should be used to look up or create loggers. |
close, getContext, getLogger, getLoggersInContext, newLogger
protected 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<Logger>
LogManager.getContext(ClassLoader, boolean)
,
LogManager.getContext(String, boolean)
Copyright © 1999-2018. 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.