|
ModeShape Distribution 3.1.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.ExtensionLogger
public final class ExtensionLogger
Implementation of the Logger interface which delegates the logging operations to an I18n based
Logger implementation, using pass-through I18n objects. This is implementation should be
normally used by ModeShape extensions, to avoid coupling with the I18n objects and the -common module.
| 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 Loggermessage - the message stringparams - the parameter values that are to replace the variables in the format string
public void debug(Throwable t,
String message,
Object... params)
LoggerLogger.debug(String, Object...).
debug in interface Loggert - the exception (throwable) to logmessage - the message accompanying the exceptionparams - the parameter values that are to replace the variables in the format string
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.
error in interface Loggermessage - the message stringparams - the parameter values that are to replace the variables in the format string
public void error(Throwable t,
String message,
Object... params)
LoggerLogger.error(String, Object...).
error in interface Loggert - the exception (throwable) to logmessage - the message accompanying the exceptionparams - the parameter values that are to replace the variables in the format string
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.
info in interface Loggermessage - the message stringparams - the parameter values that are to replace the variables in the format string
public void info(Throwable t,
String message,
Object... params)
LoggerLogger.info(String, Object...).
info in interface Loggert - the exception (throwable) to logmessage - the message accompanying the exceptionparams - the parameter values that are to replace the variables in the format string
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.
trace in interface Loggermessage - the message stringparams - the parameter values that are to replace the variables in the format string
public void trace(Throwable t,
String message,
Object... params)
LoggerLogger.trace(String, Object...).
trace in interface Loggert - the exception (throwable) to logmessage - the message accompanying the exceptionparams - the parameter values that are to replace the variables in the format string
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.
warn in interface Loggermessage - the message stringparams - the parameter values that are to replace the variables in the format string
public void warn(Throwable t,
String message,
Object... params)
LoggerLogger.warn(String, Object...).
warn in interface Loggert - 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.1.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||