| Modifier and Type | Field and Description |
|---|---|
| private final ReadWriteLock | |
| protected final Map | registry
A map to store loggers for their given LoggerContexts. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public void | contextShutdown(final LoggerContext loggerContext)
Implements org.
|
| protected abstract LoggerContext | Returns: the LoggerContext to be used for lookup and creation purposesGets the |
| protected LoggerContext | Returns: the LoggerContext for the calling classthe caller class callerClass)Gets the |
| public L | getLogger(final String
the name of the logger to get name)Implements org. Gets a named logger. |
| public Set | |
| public ConcurrentMap | Returns: the map of loggers for the given LoggerContextthe LoggerContext to get loggers for context)Gets or creates the ConcurrentMap of named loggers for a given LoggerContext. |
| protected abstract L | Returns: the new named loggerthe name of the logger to create name, final LoggerContext the LoggerContext this logger will be associated with context)Creates a new named logger for a given |
| lock | back to summary |
|---|---|
| private final ReadWriteLock lock | |
| registry | back to summary |
|---|---|
| protected final Map<LoggerContext, ConcurrentMap<String, L>> registry A map to store loggers for their given LoggerContexts. | |
| AbstractLoggerAdapter | back to summary |
|---|---|
| public AbstractLoggerAdapter() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| contextShutdown | back to summary |
|---|---|
| public void contextShutdown(final LoggerContext loggerContext) Implements org.
| |
| getContext | back to summary |
|---|---|
| protected abstract LoggerContext getContext() Gets the
| |
| getContext | back to summary |
|---|---|
| protected LoggerContext getContext(final Class<?> callerClass) Gets the
| |
| getLogger | back to summary |
|---|---|
| public L getLogger(final String name) Implements org. Doc from org. Gets a named logger. Implementations should defer to the abstract methods in | |
| getLoggerContexts | back to summary |
|---|---|
| public Set For unit testing. Consider to be private. | |
| getLoggersInContext | back to summary |
|---|---|
| public ConcurrentMap Gets or creates the ConcurrentMap of named loggers for a given LoggerContext.
| |
| newLogger | back to summary |
|---|---|
| protected abstract L newLogger(final String name, final LoggerContext context) Creates a new named logger for a given
| |