public class Slf4jLogger extends AbstractDelegatingLogger
java.util.logging.Logger implementation delegating to SLF4J.
Methods Logger.doSetParent(Logger)
, Logger.getParent()
,
Logger.setUseParentHandlers(boolean)
and
Logger.getUseParentHandlers()
are not overrriden.
Level mapping inspired by org.slf4j.bridge.SLF4JBridgeHandler:
FINEST -> TRACE FINER -> DEBUG FINE -> DEBUG CONFIG -> DEBUG INFO -> INFO WARN ING -> WARN SEVER -> ERROR
Constructor and Description |
---|
Slf4jLogger(java.lang.String name,
java.lang.String resourceBundleName) |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Level |
getLevel() |
protected void |
internalLogFormatted(java.lang.String msg,
java.util.logging.LogRecord record) |
boolean |
isLoggable(java.util.logging.Level level) |
protected boolean |
supportsHandlers() |
addHandler, config, doLog, doLog, entering, entering, entering, exiting, exiting, fine, finer, finest, formatMessage, getHandlers, getParent, getUseParentHandlers, info, internalLog, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
config, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getLogger, getLogger, getName, getResourceBundle, getResourceBundleName, info, log, log, logp, logp, logrb, logrb, setFilter, setResourceBundle, severe, warning
public Slf4jLogger(java.lang.String name, java.lang.String resourceBundleName)
protected boolean supportsHandlers()
supportsHandlers
in class AbstractDelegatingLogger
public java.util.logging.Level getLevel()
getLevel
in class AbstractDelegatingLogger
public boolean isLoggable(java.util.logging.Level level)
isLoggable
in class AbstractDelegatingLogger
protected void internalLogFormatted(java.lang.String msg, java.util.logging.LogRecord record)
internalLogFormatted
in class AbstractDelegatingLogger