public interface Logger
extends org.slf4j.Logger
An extension to the SLF4J Logger
interface, which adds the quiet
and lifecycle
log
levels.
You can obtain a Logger
instance using Logging.getLogger(Class)
or Logging.getLogger(String)
. A Logger
instance is also available through Project.getLogger()
, Task.getLogger()
and Script.getLogger()
.
Modifier and Type | Method and Description |
---|---|
void |
debug(String message,
Object... objects)
Multiple-parameters friendly debug method
|
void |
info(String message,
Object... objects)
Logs the given message at info log level.
|
boolean |
isEnabled(LogLevel level)
Returns true if the given log level is enabled for this logger.
|
boolean |
isLifecycleEnabled()
Returns true if lifecycle log level is enabled for this logger.
|
boolean |
isQuietEnabled()
Returns true if quiet log level is enabled for this logger.
|
void |
lifecycle(String message)
Logs the given message at lifecycle log level.
|
void |
lifecycle(String message,
Object... objects)
Logs the given message at lifecycle log level.
|
void |
lifecycle(String message,
Throwable throwable)
Logs the given message at lifecycle log level.
|
void |
log(LogLevel level,
String message)
Logs the given message at the given log level.
|
void |
log(LogLevel level,
String message,
Object... objects)
Logs the given message at the given log level.
|
void |
log(LogLevel level,
String message,
Throwable throwable)
Logs the given message at the given log level.
|
void |
quiet(String message)
Logs the given message at quiet log level.
|
void |
quiet(String message,
Object... objects)
Logs the given message at quiet log level.
|
void |
quiet(String message,
Throwable throwable)
Logs the given message at quiet log level.
|
debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
boolean isLifecycleEnabled()
void debug(String message, Object... objects)
debug
in interface org.slf4j.Logger
message
- the log messageobjects
- the log message parametersvoid lifecycle(String message)
message
- the log message.void lifecycle(String message, Object... objects)
message
- the log message.objects
- the log message parameters.void lifecycle(String message, Throwable throwable)
message
- the log message.throwable
- the exception to log.boolean isQuietEnabled()
void quiet(String message)
message
- the log message.void quiet(String message, Object... objects)
message
- the log message.objects
- the log message parameters.void info(String message, Object... objects)
info
in interface org.slf4j.Logger
message
- the log message.objects
- the log message parameters.void quiet(String message, Throwable throwable)
message
- the log message.throwable
- the exception to log.boolean isEnabled(LogLevel level)
void log(LogLevel level, String message)
level
- the log level.message
- the log message.void log(LogLevel level, String message, Object... objects)
level
- the log level.message
- the log message.objects
- the log message parameters.