|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.web.jcr.WebLogger
public final class WebLogger
Implementation of the Logger
interface which delegates the logging operations to an I18n based
Logger
implementation, using pass-through TextI18n
objects.
This should be used in ModeShape's server-side web modules.
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. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
debug
in interface Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void debug(Throwable t, String message, Object... params)
Logger
Logger.debug(String, Object...)
.
debug
in interface Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic 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.
error
in interface Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void error(Throwable t, String message, Object... params)
Logger
Logger.error(String, Object...)
.
error
in interface Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic 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.
info
in interface Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void info(Throwable t, String message, Object... params)
Logger
Logger.info(String, Object...)
.
info
in interface Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic 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.
trace
in interface Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void trace(Throwable t, String message, Object... params)
Logger
Logger.trace(String, Object...)
.
trace
in interface Logger
t
- the exception (throwable) to logmessage
- the message accompanying the exceptionparams
- the parameter values that are to replace the variables in the format stringpublic 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.
warn
in interface Logger
message
- the message stringparams
- the parameter values that are to replace the variables in the format stringpublic void warn(Throwable t, String message, Object... params)
Logger
Logger.warn(String, Object...)
.
warn
in interface Logger
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.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |