public interface Logger
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.
|
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.
|
void debug(String message, Object... params)
{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.
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringvoid debug(Throwable t, String message, Object... params)
debug(String, Object...)
.t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringvoid error(String message, Object... params)
{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.
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringvoid error(Throwable t, String message, Object... params)
error(String, Object...)
.t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringvoid info(String message, Object... params)
{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.
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringvoid info(Throwable t, String message, Object... params)
info(String, Object...)
.t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringvoid trace(String message, Object... params)
{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.
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringvoid trace(Throwable t, String message, Object... params)
trace(String, Object...)
.t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringvoid warn(String message, Object... params)
{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.
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringvoid warn(Throwable t, String message, Object... params)
warn(String, Object...)
.t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringboolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
boolean isDebugEnabled()
boolean isTraceEnabled()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.