Logger.Level
Modifier and Type | Field and Description |
---|---|
static LoggerProvider<JCLLogger> |
PROVIDER |
Constructor and Description |
---|
JCLLogger(org.apache.commons.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message)
Logs a message at DEBUG level.
|
void |
error(java.lang.String message)
Logs a message at ERROR level.
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Logs a message at ERROR level.
|
java.lang.String |
getName()
Returns the logger name.
|
void |
info(java.lang.String message)
Logs a message at INFO level.
|
boolean |
isDebugEnabled()
Returns
true if DEBUG level is enabled. |
boolean |
isEnabled(Logger.Level level)
Returns
true if certain logging
level is enabled. |
boolean |
isErrorEnabled()
Returns
true if ERROR level is enabled. |
boolean |
isInfoEnabled()
Returns
true if INFO level is enabled. |
boolean |
isTraceEnabled()
Returns
true if TRACE level is enabled. |
boolean |
isWarnEnabled()
Returns
true if WARN level is enabled. |
void |
log(Logger.Level level,
java.lang.String message)
Logs a message at provided logging level.
|
void |
log(Logger.Level level,
java.lang.String message,
java.lang.Throwable throwable)
Logs a message and displays exception info.
|
void |
setLevel(Logger.Level level)
Sets new level dynamically.
|
void |
trace(java.lang.String message)
Logs a message at TRACE level.
|
void |
warn(java.lang.String message)
Logs a message at WARN level.
|
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Logs a message at WARN level.
|
public static final LoggerProvider<JCLLogger> PROVIDER
public java.lang.String getName()
Logger
public boolean isEnabled(Logger.Level level)
Logger
true
if certain logging
level is enabled.public void log(Logger.Level level, java.lang.String message)
Logger
public void log(Logger.Level level, java.lang.String message, java.lang.Throwable throwable)
Logger
public void setLevel(Logger.Level level)
Logger
public boolean isTraceEnabled()
Logger
true
if TRACE level is enabled.isTraceEnabled
in interface Logger
public void trace(java.lang.String message)
Logger
public boolean isDebugEnabled()
Logger
true
if DEBUG level is enabled.isDebugEnabled
in interface Logger
public void debug(java.lang.String message)
Logger
public boolean isInfoEnabled()
Logger
true
if INFO level is enabled.isInfoEnabled
in interface Logger
public void info(java.lang.String message)
Logger
public boolean isWarnEnabled()
Logger
true
if WARN level is enabled.isWarnEnabled
in interface Logger
public void warn(java.lang.String message)
Logger
public void warn(java.lang.String message, java.lang.Throwable throwable)
Logger
public boolean isErrorEnabled()
Logger
true
if ERROR level is enabled.isErrorEnabled
in interface Logger
public void error(java.lang.String message)
Logger
Copyright © 2003-present Jodd Team