|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Logger
A generic logger interface.
| Method Summary | |
|---|---|
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. |
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. |
| Method Detail |
|---|
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 string
void 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 string
void 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 string
void 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 string
void 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 string
void 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 string
void 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 string
void 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 string
void 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 string
void 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 string
|
ModeShape Distribution 3.3.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||