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)
Creates a new logger instance for the underlying class.
|
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 static Logger getLogger(Class<?> clazz)
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)
Logger
Logger.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)
Logger
Logger.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)
Logger
Logger.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)
Logger
Logger.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)
Logger
Logger.warn(String, Object...)
.public boolean isInfoEnabled()
Logger
isInfoEnabled
in interface Logger
public boolean isWarnEnabled()
Logger
isWarnEnabled
in interface Logger
public boolean isErrorEnabled()
Logger
isErrorEnabled
in interface Logger
public boolean isDebugEnabled()
Logger
isDebugEnabled
in interface Logger
public boolean isTraceEnabled()
Logger
isTraceEnabled
in interface Logger
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.