public interface PatchLogger
| Modifier and Type | Interface and Description |
|---|---|
static class |
PatchLogger.LoggingMode
Enumeration defining where the message should be logged
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String msg)
Log a message at the DEBUG level.
|
void |
debug(java.lang.String msg,
java.lang.Object... arguments)
Log a message at the DEBUG level according to the specified message and arguments.
|
void |
debug(java.lang.String msg,
java.lang.Object arg)
Log a message at the DEBUG level according to the specified message and argument.
|
void |
debug(java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
Log a message at the DEBUG level according to the specified message and arguments.
|
void |
debug(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message.
|
void |
error(PatchLogger.LoggingMode loggingMode,
java.lang.String msg)
Log a message at the ERROR level.
|
void |
error(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object... arguments)
Log a message at the ERROR level according to the specified message and arguments.
|
void |
error(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg)
Log a message at the ERROR level according to the specified message and argument.
|
void |
error(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
Log a message at the ERROR level according to the specified message and arguments.
|
void |
error(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message.
|
void |
error(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message.
|
java.lang.String |
getName()
Return the name of this
Logger instance. |
void |
info(PatchLogger.LoggingMode loggingMode,
java.lang.String msg)
Log a message at the INFO level.
|
void |
info(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object... arguments)
Log a message at the INFO level according to the specified message and arguments.
|
void |
info(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg)
Log a message at the INFO level according to the specified message and argument.
|
void |
info(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
Log a message at the INFO level according to the specified message and arguments.
|
void |
info(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message.
|
void |
info(java.lang.String msg)
Log a message at the INFO level.
|
boolean |
isDebugEnabled()
Is the logger instance enabled for the DEBUG level?
|
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level?
|
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level?
|
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level?
|
void |
warn(PatchLogger.LoggingMode loggingMode,
java.lang.String msg)
Log a message at the WARN level.
|
void |
warn(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object... arguments)
Log a message at the WARN level according to the specified message and arguments.
|
void |
warn(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg)
Log a message at the WARN level according to the specified message and argument.
|
void |
warn(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
Log a message at the WARN level according to the specified message and arguments.
|
void |
warn(PatchLogger.LoggingMode loggingMode,
java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message.
|
java.lang.String getName()
Logger instance.boolean isDebugEnabled()
void debug(java.lang.String msg)
msg - the message string to be loggedvoid debug(java.lang.String msg,
java.lang.Object arg)
This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
msg - the message string to be loggedarg - the argumentvoid debug(java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
msg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentvoid debug(java.lang.String msg,
java.lang.Object... arguments)
This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this
variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the
method, even if this logger is disabled for DEBUG. The variants taking one and
two arguments exist solely in order to avoid this hidden cost.
msg - the message string to be loggedarguments - a list of 3 or more argumentsvoid debug(java.lang.String msg,
java.lang.Throwable t)
msg - the message accompanying the exceptiont - the exception (throwable) to logboolean isInfoEnabled()
void info(java.lang.String msg)
msg - the message string to be loggedvoid info(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
loggingMode - define where the message should be loggedmsg - the message string to be loggedvoid info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
This form avoids superfluous object creation when the logger is disabled for the INFO level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentvoid info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
This form avoids superfluous object creation when the logger is disabled for the INFO level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentvoid info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... arguments)
This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this
variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the
method, even if this logger is disabled for INFO. The variants taking one and two arguments exist solely in order to avoid this
hidden cost.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarguments - a list of 3 or more argumentsvoid info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable t)
loggingMode - define where the message should be loggedmsg - the message accompanying the exceptiont - the exception (throwable) to logboolean isWarnEnabled()
void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
loggingMode - define where the message should be loggedmsg - the message string to be loggedvoid warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
This form avoids superfluous object creation when the logger is disabled for the WARN level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentvoid warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... arguments)
This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this
variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the
method, even if this logger is disabled for WARN. The variants taking one and two arguments exist solely in order to avoid this
hidden cost.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarguments - a list of 3 or more argumentsvoid warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
This form avoids superfluous object creation when the logger is disabled for the WARN level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentvoid warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable t)
loggingMode - define where the message should be loggedmsg - the message accompanying the exceptiont - the exception (throwable) to logboolean isErrorEnabled()
void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
loggingMode - define where the message should be loggedmsg - the message string to be loggedvoid error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
This form avoids superfluous object creation when the logger is disabled for the ERROR level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentvoid error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
This form avoids superfluous object creation when the logger is disabled for the ERROR level.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentvoid error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... arguments)
This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this
variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the
method, even if this logger is disabled for ERROR. The variants taking one and two arguments exist solely in order to avoid this
hidden cost.
loggingMode - define where the message should be loggedmsg - the message string to be loggedarguments - a list of 3 or more argumentsvoid error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable t)
loggingMode - define where the message should be loggedmsg - the message accompanying the exceptiont - the exception (throwable) to logvoid error(java.lang.String msg,
java.lang.Throwable t)
msg - the message accompanying the exceptiont - the exception (throwable) to logCopyright © 2018 SAP SE. All Rights Reserved.