public class StdLogger extends Logger
ROOT_LOGGER_NAME
Constructor and Description |
---|
StdLogger(StdLoggerFactory factory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the name of this
Logger instance. |
boolean |
isLevelEnabled(Level level)
Is the logger instance enabled for the specified level?
|
void |
log(Level level,
java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the specified level with an accompanying message.
|
LogEnterLeave |
logStartAndEndWithVarargs(Level level,
java.lang.String format,
java.lang.Object... arguments)
Log start and end messages at the specified level, with the specified message format and arguments.
|
void |
logWithVarargs(Level level,
java.lang.String format,
java.lang.Object... arguments)
Log a message at the specified level, with the specified message format and arguments.
|
void |
setLevel(Level loggerLevel)
Override the level for this logger, or remove the override if loggerLevel is null.
|
debug, debug, debug, debug, debug, debugEnterLeave, debugEnterLeave, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, log, log, log, log, logEnterLeave, trace, trace, trace, trace, trace, traceEnterLeave, traceEnterLeave, warn, warn, warn, warn, warn
public StdLogger(StdLoggerFactory factory, java.lang.String name)
public java.lang.String getName()
Logger
Logger
instance.public void setLevel(Level loggerLevel)
public boolean isLevelEnabled(Level level)
Logger
isLevelEnabled
in class Logger
public void logWithVarargs(Level level, java.lang.String format, java.lang.Object... arguments)
Logger
logWithVarargs
in class Logger
level
- logging level to log atformat
- the format stringarguments
- a list of 0 or more argumentspublic void log(Level level, java.lang.String msg, java.lang.Throwable t)
Logger
public LogEnterLeave logStartAndEndWithVarargs(Level level, java.lang.String format, java.lang.Object... arguments)
Logger
logStartAndEndWithVarargs
in class Logger
level
- logging level to log atformat
- the format stringarguments
- a list of 0 or more arguments