Logger class. Note that this implementation does
not use the java.util.logging.Handler class. Instead, logging is delegated to the
underlying Log4j org.apache.logging.log4j.core.Logger which uses
Appenders instead.
| Modifier and Type | Field and Description |
|---|---|
| private final org. |
| Access | Constructor and Description |
|---|---|
| pack-priv | CoreLogger(final org.
the underlying Logger to base this Logger on loggerConstructs a Logger using a Log4j |
| Modifier and Type | Method and Description |
|---|---|
| public Logger | |
| public synchronized boolean | Returns: true if this Logger is additive, or false otherwiseOverrides java. Indicates if the underlying |
| public void | setLevel(final Level
the new value for the log level (may be null) level)Overrides org. Set the log level specifying which message levels will be logged by this logger. |
| public synchronized void | setUseParentHandlers(final boolean
true if this Logger should be additiveOverrides java. Marks the underlying |
| logger | back to summary |
|---|---|
| private final org. | |
| CoreLogger | back to summary |
|---|---|
| pack-priv CoreLogger(final org. Constructs a Logger using a Log4j
| |
| getParent | back to summary |
|---|---|
| public Logger getParent() Overrides java. Doc from java. Return the parent for this Logger. This method returns the nearest extant parent in the namespace. Thus if a Logger is called "a.b.c.d", and a Logger called "a.b" has been created but no logger "a.b.c" exists, then a call of getParent on the Logger "a.b.c.d" will return the Logger "a.b". The result will be null if it is called on the root Logger in the namespace. | |
| getUseParentHandlers | back to summary |
|---|---|
| public synchronized boolean getUseParentHandlers() Overrides java. Indicates if the underlying
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(final Level level) throws SecurityException Overrides org. Doc from java. Set the log level specifying which message levels will be logged by this logger. Message levels lower than this value will be discarded. The level value Level.OFF can be used to turn off logging. If the new level is null, it means that this node should inherit its level from its nearest ancestor with a specific (non-null) level value.
| |
| setUseParentHandlers | back to summary |
|---|---|
| public synchronized void setUseParentHandlers(final boolean additive) Overrides java. Marks the underlying
| |