public class CoreLogger extends ApiLogger
Logger
class. Note that this implementation does
not use the Handler
class. Instead, logging is delegated to the
underlying Log4j Logger
which uses
Appenders
instead.global, GLOBAL_LOGGER_NAME
Modifier and Type | Method and Description |
---|---|
Logger |
getParent() |
boolean |
getUseParentHandlers()
Indicates if the underlying
Logger is additive. |
void |
setLevel(Level level) |
void |
setUseParentHandlers(boolean additive)
Marks the underlying
Logger as additive. |
config, doSetLevel, entering, entering, entering, exiting, exiting, fine, finer, finest, getName, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, setParent, severe, throwing, warning
addHandler, config, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getHandlers, getLevel, getLogger, getLogger, getResourceBundle, getResourceBundleName, info, log, log, logp, logp, logrb, logrb, removeHandler, setFilter, setResourceBundle, severe, warning
public void setLevel(Level level) throws SecurityException
setLevel
in class ApiLogger
SecurityException
public void setUseParentHandlers(boolean additive)
Logger
as additive.setUseParentHandlers
in class Logger
additive
- true
if this Logger should be additiveLogger.setAdditive(boolean)
public boolean getUseParentHandlers()
Logger
is additive. Note that the
Log4j version of JDK Loggers do not use Handlers.getUseParentHandlers
in class Logger
true
if this Logger is additive, or false
otherwiseLogger.isAdditive()
Copyright © 1999-1969 The Apache Software Foundation. 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.