| Modifier and Type | Field and Description |
|---|---|
| private final Set | activeLoggers
The set of phantom references to active loggers. |
| private static final VarHandle | |
| private volatile Map | |
| private final ConcurrentMap | children
The map of names to child nodes. |
| private final LogContext | context
The log context. |
| private volatile int | effectiveLevel
The effective level. |
| private final int | effectiveMinLevel
The effective minimum level, which may not be modified. |
| private static final StackTraceElement[] | |
| private volatile Filter | filter
The filter for this logger instance. |
| private final String | fullName
The fully-qualified name of this logger. |
| private volatile Handler[] | handlers
The handlers for this logger. |
| private static final AtomicArray | handlersUpdater
The atomic updater for the |
| private volatile Level | level
The actual level. |
| private final LoggerNode | parent
The parent node, or |
| private static final Reaper | |
| private volatile boolean | useParentFilter
Flag to specify whether parent filters are used. |
| private volatile boolean | useParentHandlers
Flag to specify whether parent handlers are used. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private | LoggerNode(LogContext
the logmanager context, LoggerNode the parent node parent, String the name of this subnode nodeName)Construct a child instance. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv <V> V | |
| pack-priv <V> V | |
| pack-priv Handler[] | |
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| pack-priv boolean | |
| pack-priv Logger | |
| public <V> V | |
| pack-priv <V> V | |
| pack-priv Collection | |
| pack-priv LogContext | |
| pack-priv int | |
| pack-priv Filter | |
| pack-priv String | |
| pack-priv Handler[] | |
| pack-priv LoggerNode | Returns: the corresponding loggerthe name name)Get a relative logger, if it exists. |
| pack-priv Level | |
| pack-priv Enumeration | |
| pack-priv LoggerNode | Returns: the corresponding logger nodethe name name)Get or create a relative logger node. |
| pack-priv LoggerNode | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | Returns: true if the record is loggable, otherwise falsethe log record to check against the filter record)Checks the filter to see if the record is loggable. |
| private static boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static Handler[] | |
| pack-priv void | setEffectiveLevel(int
the new effective level newLevel)Update the effective level if it is inherited from a parent. |
| pack-priv void | |
| pack-priv Handler[] | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| activeLoggers | back to summary |
|---|---|
| private final Set<Reference<Logger, LoggerNode>> activeLoggers The set of phantom references to active loggers. | |
| attachmentHandle | back to summary |
|---|---|
| private static final VarHandle attachmentHandle | |
| attachments | back to summary |
|---|---|
| private volatile Map<Logger. | |
| children | back to summary |
|---|---|
| private final ConcurrentMap<String, LoggerNode> children The map of names to child nodes. The child node references are weak. | |
| context | back to summary |
|---|---|
| private final LogContext context The log context. | |
| effectiveLevel | back to summary |
|---|---|
| private volatile int effectiveLevel The effective level. May only be modified when the context's level change lock is held; in addition, changing this field must be followed immediately by recursively updating the effective loglevel of the child tree. | |
| effectiveMinLevel | back to summary |
|---|---|
| private final int effectiveMinLevel The effective minimum level, which may not be modified. | |
| EMPTY_STACK | back to summary |
|---|---|
| private static final StackTraceElement[] EMPTY_STACK | |
| filter | back to summary |
|---|---|
| private volatile Filter filter The filter for this logger instance. | |
| fullName | back to summary |
|---|---|
| private final String fullName The fully-qualified name of this logger. | |
| handlers | back to summary |
|---|---|
| private volatile Handler[] handlers The handlers for this logger. May only be updated using the
| |
| handlersUpdater | back to summary |
|---|---|
| private static final AtomicArray<LoggerNode, Handler> handlersUpdater The atomic updater for the | |
| level | back to summary |
|---|---|
| private volatile Level level The actual level. May only be modified when the context's level change lock is held; in addition, changing this field must be followed immediately by recursively updating the effective loglevel of the child tree. | |
| parent | back to summary |
|---|---|
| private final LoggerNode parent The parent node, or | |
| REAPER | back to summary |
|---|---|
| private static final Reaper<Logger, LoggerNode> REAPER | |
| useParentFilter | back to summary |
|---|---|
| private volatile boolean useParentFilter Flag to specify whether parent filters are used. | |
| useParentHandlers | back to summary |
|---|---|
| private volatile boolean useParentHandlers Flag to specify whether parent handlers are used. | |
| LoggerNode | back to summary |
|---|---|
| pack-priv LoggerNode(final LogContext context) Construct a new root instance.
| |
| LoggerNode | back to summary |
|---|---|
| private LoggerNode(LogContext context, LoggerNode parent, String nodeName) Construct a child instance.
| |
| addHandler | back to summary |
|---|---|
| pack-priv void addHandler(final Handler handler) | |
| attach | back to summary |
|---|---|
pack-priv <V> V attach(final Logger.
| |
| attachIfAbsent | back to summary |
|---|---|
pack-priv <V> V attachIfAbsent(final Logger.
| |
| clearHandlers | back to summary |
|---|---|
| pack-priv Handler[] clearHandlers() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| compareAndSetHandlers | back to summary |
|---|---|
| pack-priv boolean compareAndSetHandlers(final Handler[] oldHandlers, final Handler[] newHandlers) | |
| createLogger | back to summary |
|---|---|
| pack-priv Logger createLogger() | |
| detach | back to summary |
|---|---|
public <V> V detach(final Logger.
| |
| getAttachment | back to summary |
|---|---|
pack-priv <V> V getAttachment(final Logger.
| |
| getChildren | back to summary |
|---|---|
| pack-priv Collection Get the children of this logger.
| |
| getContext | back to summary |
|---|---|
| pack-priv LogContext getContext() Get the log context.
| |
| getEffectiveLevel | back to summary |
|---|---|
| pack-priv int getEffectiveLevel() | |
| getFilter | back to summary |
|---|---|
| pack-priv Filter getFilter() | |
| getFullName | back to summary |
|---|---|
| pack-priv String getFullName() | |
| getHandlers | back to summary |
|---|---|
| pack-priv Handler[] getHandlers() | |
| getIfExists | back to summary |
|---|---|
| pack-priv LoggerNode getIfExists(final String name) Get a relative logger, if it exists.
| |
| getLevel | back to summary |
|---|---|
| pack-priv Level getLevel() | |
| getLoggerNames | back to summary |
|---|---|
| pack-priv Enumeration | |
| getOrCreate | back to summary |
|---|---|
| pack-priv LoggerNode getOrCreate(final String name) Get or create a relative logger node. The name is relatively qualified to this node.
| |
| getParent | back to summary |
|---|---|
| pack-priv LoggerNode getParent() | |
| getUseParentFilters | back to summary |
|---|---|
| pack-priv boolean getUseParentFilters() | |
| getUseParentHandlers | back to summary |
|---|---|
| pack-priv boolean getUseParentHandlers() | |
| isLoggable | back to summary |
|---|---|
| pack-priv boolean isLoggable(final ExtLogRecord record) Checks the filter to see if the record is loggable. If the
| |
| isLoggable | back to summary |
|---|---|
| private static boolean isLoggable(final LoggerNode loggerNode, final ExtLogRecord record) | |
| isLoggableLevel | back to summary |
|---|---|
| pack-priv boolean isLoggableLevel(int level) | |
| publish | back to summary |
|---|---|
pack-priv void publish(final ExtLogRecord record)
| |
| removeHandler | back to summary |
|---|---|
| pack-priv void removeHandler(final Handler handler) | |
| safeCloneHandlers | back to summary |
|---|---|
| pack-priv static Handler[] safeCloneHandlers(Handler... initialHandlers) | |
| setEffectiveLevel | back to summary |
|---|---|
| pack-priv void setEffectiveLevel(int newLevel) Update the effective level if it is inherited from a parent. Must only be called while the logmanager's level change lock is held.
| |
| setFilter | back to summary |
|---|---|
| pack-priv void setFilter(final Filter filter) | |
| setHandlers | back to summary |
|---|---|
| pack-priv Handler[] setHandlers(final Handler[] handlers) | |
| setLevel | back to summary |
|---|---|
| pack-priv void setLevel(final Level newLevel) | |
| setUseParentFilters | back to summary |
|---|---|
| pack-priv void setUseParentFilters(final boolean useParentFilter) | |
| setUseParentHandlers | back to summary |
|---|---|
| pack-priv void setUseParentHandlers(final boolean useParentHandlers) | |