|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.component.logging.VoidLogger
@Deprecated public class VoidLogger
Logger that doesn't do anything. Useful to use when no logger implementation is selected to prevent NPEs. In a component-based environment loggers are always set but when component classes are used as simple Java Beans the logger needs to be set and this logger implementation can be used when the user doesn't set explicitly a logger.
| Constructor Summary | |
|---|---|
VoidLogger()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String message)
Deprecated. Log a message with the debug priority. |
void |
debug(java.lang.String message,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with debug priority while expanding the message with the
objects passed. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. Log a message with the debug priority, also printing the exception that caused this message, along
with its stack trace. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with debug priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. |
void |
error(java.lang.String message)
Deprecated. Log a message with the error priority. |
void |
error(java.lang.String message,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with error priority while expanding the message with the
objects passed. |
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. Log a message with the error priority, also printing the exception that caused this message, along
with its stack trace. |
void |
error(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with error priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. |
void |
info(java.lang.String message)
Deprecated. Log a message with the info priority. |
void |
info(java.lang.String message,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with info priority while expanding the message with the
objects passed. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. Log a message with the info priority, also printing the exception that caused this message, along
with its stack trace. |
void |
info(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with info priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. |
boolean |
isDebugEnabled()
Deprecated. Check if the debug priority is enabled. |
boolean |
isErrorEnabled()
Deprecated. Check if the error priority is enabled. |
boolean |
isInfoEnabled()
Deprecated. Check if the info priority is enabled. |
boolean |
isWarnEnabled()
Deprecated. Check if the warn priority is enabled. |
void |
warn(java.lang.String message)
Deprecated. Log a message with the warn priority. |
void |
warn(java.lang.String message,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with warn priority while expanding the message with the
objects passed. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. Log a message with the warn priority, also printing the exception that caused this message, along
with its stack trace. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Deprecated. Logs the message to the logger with warn priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VoidLogger()
| Method Detail |
|---|
public void debug(java.lang.String message)
debug priority.
debug in interface Loggermessage - The message to be logged. No further processing of the message is performed.
public void debug(java.lang.String message,
java.lang.Throwable throwable)
debug priority, also printing the exception that caused this message, along
with its stack trace.
debug in interface Loggermessage - The message to be logged. No further processing of the message is performed.throwable - The exception associated with the message, for stack trace output.
public void debug(java.lang.String message,
java.lang.Object... objects)
Logs the message to the logger with debug priority while expanding the message with the
objects passed. The message uses the java.text.MessageFormat syntax.
Example:
log.debug("Doc was created on {0} and was changed {1} times", date, 5);
log.debug("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be formatted if the message is actually logged.
debug in interface Loggermessage - The message to be formatted via java.text.MessageFormatobjects - The objects to be filled into the messagejava.text.MessageFormat
public void debug(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Logs the message to the logger with debug priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. The message
uses the java.text.MessageFormat syntax.
Example:
log.debug("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
debug in interface Loggermessage - The message to be formatted via java.text.MessageFormatthrowable - The exception associated with the message, for stack trace output.objects - The objects to be filled into the messagejava.text.MessageFormatpublic void error(java.lang.String message)
error priority.
error in interface Loggermessage - The message to be logged. No further processing of the message is performed.
public void error(java.lang.String message,
java.lang.Throwable throwable)
error priority, also printing the exception that caused this message, along
with its stack trace.
error in interface Loggermessage - The message to be logged. No further processing of the message is performed.throwable - The exception associated with the message, for stack trace output.
public void error(java.lang.String message,
java.lang.Object... objects)
Logs the message to the logger with error priority while expanding the message with the
objects passed. The message uses the java.text.MessageFormat syntax.
Example:
log.error("Doc was created on {0} and was changed {1} times", date, 5);
log.error("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
error in interface Loggermessage - The message to be formatted via java.text.MessageFormatobjects - The objects to be filled into the messagejava.text.MessageFormat
public void error(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Logs the message to the logger with error priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. The message
uses the java.text.MessageFormat syntax.
Example:
log.error("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
error in interface Loggermessage - The message to be formatted via java.text.MessageFormatthrowable - The exception associated with the message, for stack trace output.objects - The objects to be filled into the messagejava.text.MessageFormatpublic void info(java.lang.String message)
info priority.
info in interface Loggermessage - The message to be logged. No further processing of the message is performed.
public void info(java.lang.String message,
java.lang.Throwable throwable)
info priority, also printing the exception that caused this message, along
with its stack trace.
info in interface Loggermessage - The message to be logged. No further processing of the message is performed.throwable - The exception associated with the message, for stack trace output.
public void info(java.lang.String message,
java.lang.Object... objects)
Logs the message to the logger with info priority while expanding the message with the
objects passed. The message uses the java.text.MessageFormat syntax.
Example:
log.info("Doc was created on {0} and was changed {1} times", date, 5);
log.info("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
info in interface Loggermessage - The message to be formatted via java.text.MessageFormatobjects - The objects to be filled into the messagejava.text.MessageFormat
public void info(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Logs the message to the logger with info priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. The message
uses the java.text.MessageFormat syntax.
Example:
log.info("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
info in interface Loggermessage - The message to be formatted via java.text.MessageFormatthrowable - The exception associated with the message, for stack trace output.objects - The objects to be filled into the messagejava.text.MessageFormatpublic boolean isDebugEnabled()
debug priority is enabled.
isDebugEnabled in interface Loggertrue if messages with debug priority will be logged, false otherwisepublic boolean isErrorEnabled()
error priority is enabled.
isErrorEnabled in interface Loggertrue if messages with error priority will be logged, false otherwisepublic boolean isInfoEnabled()
info priority is enabled.
isInfoEnabled in interface Loggertrue if messages with info priority will be logged, false otherwisepublic boolean isWarnEnabled()
warn priority is enabled.
isWarnEnabled in interface Loggertrue if messages with warn priority will be logged, false otherwisepublic void warn(java.lang.String message)
warn priority.
warn in interface Loggermessage - The message to be logged. No further processing of the message is performed.
public void warn(java.lang.String message,
java.lang.Throwable throwable)
warn priority, also printing the exception that caused this message, along
with its stack trace.
warn in interface Loggermessage - The message to be logged. No further processing of the message is performed.throwable - The exception associated with the message, for stack trace output.
public void warn(java.lang.String message,
java.lang.Object... objects)
Logs the message to the logger with warn priority while expanding the message with the
objects passed. The message uses the java.text.MessageFormat syntax.
Example:
log.warn("Doc was created on {0} and was changed {1} times", date, 5);
log.warn("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
warn in interface Loggermessage - The message to be formatted via java.text.MessageFormatobjects - The objects to be filled into the messagejava.text.MessageFormat
public void warn(java.lang.String message,
java.lang.Throwable throwable,
java.lang.Object... objects)
Logs the message to the logger with warn priority while expanding the message with the
objects passed, also printing the exception that caused this message, along with its stack trace. The message
uses the java.text.MessageFormat syntax.
Example:
log.warn("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
warn in interface Loggermessage - The message to be formatted via java.text.MessageFormatthrowable - The exception associated with the message, for stack trace output.objects - The objects to be filled into the messagejava.text.MessageFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||