public class PatchLoggerImpl extends java.lang.Object implements PatchLogger
PatchLogger.LoggingMode| Constructor and Description |
|---|
PatchLoggerImpl(java.lang.Class clazz) |
| 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... objects)
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 throwable)
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... objects)
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 throwable)
Log an exception (throwable) at the ERROR level with an accompanying message.
|
void |
error(java.lang.String msg,
java.lang.Throwable throwable)
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... objects)
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 throwable)
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... objects)
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 throwable)
Log an exception (throwable) at the WARN level with an accompanying message.
|
public java.lang.String getName()
PatchLoggerLogger instance.getName in interface PatchLoggerpublic boolean isErrorEnabled()
PatchLoggerisErrorEnabled in interface PatchLoggerpublic void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
PatchLoggererror in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedpublic void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
error in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentpublic void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
error in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentpublic void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... objects)
PatchLogger
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.
error in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedobjects - a list of 3 or more argumentspublic void error(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable throwable)
PatchLoggererror in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message accompanying the exceptionthrowable - the exception (throwable) to logpublic void error(java.lang.String msg,
java.lang.Throwable throwable)
PatchLoggererror in interface PatchLoggermsg - the message accompanying the exceptionthrowable - the exception (throwable) to logpublic boolean isWarnEnabled()
PatchLoggerisWarnEnabled in interface PatchLoggerpublic void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
PatchLoggerwarn in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedpublic void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the WARN level.
warn in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentpublic void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the WARN level.
warn in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentpublic void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... objects)
PatchLogger
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.
warn in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedobjects - a list of 3 or more argumentspublic void warn(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable throwable)
PatchLoggerwarn in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message accompanying the exceptionthrowable - the exception (throwable) to logpublic boolean isInfoEnabled()
PatchLoggerisInfoEnabled in interface PatchLoggerpublic void info(PatchLogger.LoggingMode loggingMode, java.lang.String msg)
PatchLoggerinfo in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedpublic void info(java.lang.String msg)
PatchLoggerinfo in interface PatchLoggermsg - the message string to be loggedpublic void info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the INFO level.
info in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg - the argumentpublic void info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the INFO level.
info in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentpublic void info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Object... objects)
PatchLogger
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.
info in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message string to be loggedobjects - a list of 3 or more argumentspublic void info(PatchLogger.LoggingMode loggingMode, java.lang.String msg, java.lang.Throwable throwable)
PatchLoggerinfo in interface PatchLoggerloggingMode - define where the message should be loggedmsg - the message accompanying the exceptionthrowable - the exception (throwable) to logpublic boolean isDebugEnabled()
PatchLoggerisDebugEnabled in interface PatchLoggerpublic void debug(java.lang.String msg)
PatchLoggerdebug in interface PatchLoggermsg - the message string to be loggedpublic void debug(java.lang.String msg,
java.lang.Object arg)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
debug in interface PatchLoggermsg - the message string to be loggedarg - the argumentpublic void debug(java.lang.String msg,
java.lang.Object arg1,
java.lang.Object arg2)
PatchLoggerThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
debug in interface PatchLoggermsg - the message string to be loggedarg1 - the first argumentarg2 - the second argumentpublic void debug(java.lang.String msg,
java.lang.Object... objects)
PatchLogger
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.
debug in interface PatchLoggermsg - the message string to be loggedobjects - a list of 3 or more argumentspublic void debug(java.lang.String msg,
java.lang.Throwable throwable)
PatchLoggerdebug in interface PatchLoggermsg - the message accompanying the exceptionthrowable - the exception (throwable) to logCopyright © 2018 SAP SE. All Rights Reserved.