| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message,
Object... params)
Log a message at the DEBUG level according to the specified format and (optional) parameters.
|
void |
debug(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the DEBUG level with an accompanying message.
|
void |
error(String message,
Object... params)
Log a message at the ERROR level according to the specified format and (optional) parameters.
|
void |
error(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the ERROR level with an accompanying message.
|
static Logger |
getLogger(Class<?> clazz) |
void |
info(String message,
Object... params)
Log a message at the INFO level according to the specified format and (optional) parameters.
|
void |
info(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the INFO level with an accompanying message.
|
boolean |
isDebugEnabled()
Return whether messages at the DEBUG level are being logged.
|
boolean |
isErrorEnabled()
Return whether messages at the ERROR level are being logged.
|
boolean |
isInfoEnabled()
Return whether messages at the INFORMATION level are being logged.
|
boolean |
isTraceEnabled()
Return whether messages at the TRACE level are being logged.
|
boolean |
isWarnEnabled()
Return whether messages at the WARNING level are being logged.
|
void |
trace(String message,
Object... params)
Log a message at the TRACE level according to the specified format and (optional) parameters.
|
void |
trace(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the TRACE level with an accompanying message.
|
void |
warn(String message,
Object... params)
Log a message at the WARNING level according to the specified format and (optional) parameters.
|
void |
warn(Throwable t,
String message,
Object... params)
Log an exception (throwable) at the WARNING level with an accompanying message.
|
public void debug(String message, Object... params)
Logger{n}, where n is an integer starting at 0. Therefore, the first
parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
public void debug(Throwable t, String message, Object... params)
LoggerLogger.debug(String, Object...).public void error(String message, Object... params)
Logger{n}, where n is an integer starting at 0. Therefore, the first
parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
public void error(Throwable t, String message, Object... params)
LoggerLogger.error(String, Object...).public void info(String message, Object... params)
Logger{n}, where n is an integer starting at 0. Therefore, the first
parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
public void info(Throwable t, String message, Object... params)
LoggerLogger.info(String, Object...).public void trace(String message, Object... params)
Logger{n}, where n is an integer starting at 0. Therefore, the first
parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
public void trace(Throwable t, String message, Object... params)
LoggerLogger.trace(String, Object...).public void warn(String message, Object... params)
Logger{n}, where n is an integer starting at 0. Therefore, the first
parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
public void warn(Throwable t, String message, Object... params)
LoggerLogger.warn(String, Object...).public boolean isInfoEnabled()
LoggerisInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
LoggerisWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
LoggerisErrorEnabled in interface Loggerpublic boolean isDebugEnabled()
LoggerisDebugEnabled in interface Loggerpublic boolean isTraceEnabled()
LoggerisTraceEnabled in interface LoggerCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.