|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slf4j.helpers.SubstituteLogger
public class SubstituteLogger
A logger implementation which logs via a delegate logger. By default, the delegate is a
NOPLogger. However, a different delegate can be set at anytime.
| Field Summary |
|---|
| Fields inherited from interface org.slf4j.Logger |
|---|
ROOT_LOGGER_NAME |
| Constructor Summary | |
|---|---|
SubstituteLogger(String name)
|
|
| Method Summary | |
|---|---|
void |
debug(Marker marker,
String msg)
Log a message with the specific Marker at the DEBUG level. |
void |
debug(Marker marker,
String format,
Object... arguments)
This method is similar to Logger.debug(String, Object...) |
void |
debug(Marker marker,
String format,
Object arg)
This method is similar to Logger.debug(String, Object) method except that the
marker data is also taken into consideration. |
void |
debug(Marker marker,
String format,
Object arg1,
Object arg2)
This method is similar to Logger.debug(String, Object, Object)
method except that the marker data is also taken into
consideration. |
void |
debug(Marker marker,
String msg,
Throwable t)
This method is similar to Logger.debug(String, Throwable) method except that the
marker data is also taken into consideration. |
void |
debug(String msg)
Log a message at the DEBUG level. |
void |
debug(String format,
Object... arguments)
Log a message at the DEBUG level according to the specified format and arguments. |
void |
debug(String format,
Object arg)
Log a message at the DEBUG level according to the specified format and argument. |
void |
debug(String format,
Object arg1,
Object arg2)
Log a message at the DEBUG level according to the specified format and arguments. |
void |
debug(String msg,
Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message. |
boolean |
equals(Object o)
|
void |
error(Marker marker,
String msg)
Log a message with the specific Marker at the ERROR level. |
void |
error(Marker marker,
String format,
Object... arguments)
This method is similar to Logger.error(String, Object...) |
void |
error(Marker marker,
String format,
Object arg)
This method is similar to Logger.error(String, Object) method except that the
marker data is also taken into consideration. |
void |
error(Marker marker,
String format,
Object arg1,
Object arg2)
This method is similar to Logger.error(String, Object, Object)
method except that the marker data is also taken into
consideration. |
void |
error(Marker marker,
String msg,
Throwable t)
This method is similar to Logger.error(String, Throwable)
method except that the marker data is also taken into
consideration. |
void |
error(String msg)
Log a message at the ERROR level. |
void |
error(String format,
Object... arguments)
Log a message at the ERROR level according to the specified format and arguments. |
void |
error(String format,
Object arg)
Log a message at the ERROR level according to the specified format and argument. |
void |
error(String format,
Object arg1,
Object arg2)
Log a message at the ERROR level according to the specified format and arguments. |
void |
error(String msg,
Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message. |
String |
getName()
Return the name of this Logger instance. |
int |
hashCode()
|
void |
info(Marker marker,
String msg)
Log a message with the specific Marker at the INFO level. |
void |
info(Marker marker,
String format,
Object... arguments)
This method is similar to Logger.info(String, Object...) |
void |
info(Marker marker,
String format,
Object arg)
This method is similar to Logger.info(String, Object) method except that the
marker data is also taken into consideration. |
void |
info(Marker marker,
String format,
Object arg1,
Object arg2)
This method is similar to Logger.info(String, Object, Object)
method except that the marker data is also taken into
consideration. |
void |
info(Marker marker,
String msg,
Throwable t)
This method is similar to Logger.info(String, Throwable) method
except that the marker data is also taken into consideration. |
void |
info(String msg)
Log a message at the INFO level. |
void |
info(String format,
Object... arguments)
Log a message at the INFO level according to the specified format and arguments. |
void |
info(String format,
Object arg)
Log a message at the INFO level according to the specified format and argument. |
void |
info(String format,
Object arg1,
Object arg2)
Log a message at the INFO level according to the specified format and arguments. |
void |
info(String msg,
Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message. |
boolean |
isDebugEnabled()
Is the logger instance enabled for the DEBUG level? |
boolean |
isDebugEnabled(Marker marker)
Similar to Logger.isDebugEnabled() method except that the
marker data is also taken into account. |
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level? |
boolean |
isErrorEnabled(Marker marker)
Similar to Logger.isErrorEnabled() method except that the
marker data is also taken into consideration. |
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level? |
boolean |
isInfoEnabled(Marker marker)
Similar to Logger.isInfoEnabled() method except that the marker
data is also taken into consideration. |
boolean |
isTraceEnabled()
Is the logger instance enabled for the TRACE level? |
boolean |
isTraceEnabled(Marker marker)
Similar to Logger.isTraceEnabled() method except that the
marker data is also taken into account. |
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level? |
boolean |
isWarnEnabled(Marker marker)
Similar to Logger.isWarnEnabled() method except that the marker
data is also taken into consideration. |
void |
setDelegate(Logger delegate)
Typically called after the LoggerFactory initialization phase is completed. |
void |
trace(Marker marker,
String msg)
Log a message with the specific Marker at the TRACE level. |
void |
trace(Marker marker,
String format,
Object... arguments)
This method is similar to Logger.trace(String, Object...) |
void |
trace(Marker marker,
String format,
Object arg)
This method is similar to Logger.trace(String, Object) method except that the
marker data is also taken into consideration. |
void |
trace(Marker marker,
String format,
Object arg1,
Object arg2)
This method is similar to Logger.trace(String, Object, Object)
method except that the marker data is also taken into
consideration. |
void |
trace(Marker marker,
String msg,
Throwable t)
This method is similar to Logger.trace(String, Throwable) method except that the
marker data is also taken into consideration. |
void |
trace(String msg)
Log a message at the TRACE level. |
void |
trace(String format,
Object... arguments)
Log a message at the TRACE level according to the specified format and arguments. |
void |
trace(String format,
Object arg)
Log a message at the TRACE level according to the specified format and argument. |
void |
trace(String format,
Object arg1,
Object arg2)
Log a message at the TRACE level according to the specified format and arguments. |
void |
trace(String msg,
Throwable t)
Log an exception (throwable) at the TRACE level with an accompanying message. |
void |
warn(Marker marker,
String msg)
Log a message with the specific Marker at the WARN level. |
void |
warn(Marker marker,
String format,
Object... arguments)
This method is similar to Logger.warn(String, Object...) |
void |
warn(Marker marker,
String format,
Object arg)
This method is similar to Logger.warn(String, Object) method except that the
marker data is also taken into consideration. |
void |
warn(Marker marker,
String format,
Object arg1,
Object arg2)
This method is similar to Logger.warn(String, Object, Object)
method except that the marker data is also taken into
consideration. |
void |
warn(Marker marker,
String msg,
Throwable t)
This method is similar to Logger.warn(String, Throwable) method
except that the marker data is also taken into consideration. |
void |
warn(String msg)
Log a message at the WARN level. |
void |
warn(String format,
Object... arguments)
Log a message at the WARN level according to the specified format and arguments. |
void |
warn(String format,
Object arg)
Log a message at the WARN level according to the specified format and argument. |
void |
warn(String format,
Object arg1,
Object arg2)
Log a message at the WARN level according to the specified format and arguments. |
void |
warn(String msg,
Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubstituteLogger(String name)
| Method Detail |
|---|
public String getName()
LoggerLogger instance.
getName in interface Loggerpublic boolean isTraceEnabled()
Logger
isTraceEnabled in interface Loggerpublic void trace(String msg)
Logger
trace in interface Loggermsg - the message string to be logged
public void trace(String format,
Object arg)
LoggerThis form avoids superfluous object creation when the logger is disabled for the TRACE level.
trace in interface Loggerformat - the format stringarg - the argument
public void trace(String format,
Object arg1,
Object arg2)
LoggerThis form avoids superfluous object creation when the logger is disabled for the TRACE level.
trace in interface Loggerformat - the format stringarg1 - the first argumentarg2 - the second argument
public void trace(String format,
Object... arguments)
LoggerThis form avoids superfluous string concatenation when the logger
is disabled for the TRACE 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 TRACE. The variants taking one and
two arguments exist solely in order to avoid this hidden cost.
trace in interface Loggerformat - the format stringarguments - a list of 3 or more arguments
public void trace(String msg,
Throwable t)
Logger
trace in interface Loggermsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isTraceEnabled(Marker marker)
LoggerLogger.isTraceEnabled() method except that the
marker data is also taken into account.
isTraceEnabled in interface Loggermarker - The marker data to take into consideration
public void trace(Marker marker,
String msg)
Logger
trace in interface Loggermarker - the marker data specific to this log statementmsg - the message string to be logged
public void trace(Marker marker,
String format,
Object arg)
LoggerLogger.trace(String, Object) method except that the
marker data is also taken into consideration.
trace in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg - the argument
public void trace(Marker marker,
String format,
Object arg1,
Object arg2)
LoggerLogger.trace(String, Object, Object)
method except that the marker data is also taken into
consideration.
trace in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg1 - the first argumentarg2 - the second argument
public void trace(Marker marker,
String format,
Object... arguments)
LoggerLogger.trace(String, Object...)
method except that the marker data is also taken into
consideration.
trace in interface Loggermarker - the marker data specific to this log statementformat - the format stringarguments - an array of arguments
public void trace(Marker marker,
String msg,
Throwable t)
LoggerLogger.trace(String, Throwable) method except that the
marker data is also taken into consideration.
trace in interface Loggermarker - the marker data specific to this log statementmsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isDebugEnabled()
Logger
isDebugEnabled in interface Loggerpublic void debug(String msg)
Logger
debug in interface Loggermsg - the message string to be logged
public void debug(String format,
Object arg)
LoggerThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
debug in interface Loggerformat - the format stringarg - the argument
public void debug(String format,
Object arg1,
Object arg2)
LoggerThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
debug in interface Loggerformat - the format stringarg1 - the first argumentarg2 - the second argument
public void debug(String format,
Object... arguments)
LoggerThis 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 Loggerformat - the format stringarguments - a list of 3 or more arguments
public void debug(String msg,
Throwable t)
Logger
debug in interface Loggermsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isDebugEnabled(Marker marker)
LoggerLogger.isDebugEnabled() method except that the
marker data is also taken into account.
isDebugEnabled in interface Loggermarker - The marker data to take into consideration
public void debug(Marker marker,
String msg)
Logger
debug in interface Loggermarker - the marker data specific to this log statementmsg - the message string to be logged
public void debug(Marker marker,
String format,
Object arg)
LoggerLogger.debug(String, Object) method except that the
marker data is also taken into consideration.
debug in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg - the argument
public void debug(Marker marker,
String format,
Object arg1,
Object arg2)
LoggerLogger.debug(String, Object, Object)
method except that the marker data is also taken into
consideration.
debug in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg1 - the first argumentarg2 - the second argument
public void debug(Marker marker,
String format,
Object... arguments)
LoggerLogger.debug(String, Object...)
method except that the marker data is also taken into
consideration.
debug in interface Loggermarker - the marker data specific to this log statementformat - the format stringarguments - a list of 3 or more arguments
public void debug(Marker marker,
String msg,
Throwable t)
LoggerLogger.debug(String, Throwable) method except that the
marker data is also taken into consideration.
debug in interface Loggermarker - the marker data specific to this log statementmsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isInfoEnabled()
Logger
isInfoEnabled in interface Loggerpublic void info(String msg)
Logger
info in interface Loggermsg - the message string to be logged
public void info(String format,
Object arg)
LoggerThis form avoids superfluous object creation when the logger is disabled for the INFO level.
info in interface Loggerformat - the format stringarg - the argument
public void info(String format,
Object arg1,
Object arg2)
LoggerThis form avoids superfluous object creation when the logger is disabled for the INFO level.
info in interface Loggerformat - the format stringarg1 - the first argumentarg2 - the second argument
public void info(String format,
Object... arguments)
LoggerThis 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 Loggerformat - the format stringarguments - a list of 3 or more arguments
public void info(String msg,
Throwable t)
Logger
info in interface Loggermsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isInfoEnabled(Marker marker)
LoggerLogger.isInfoEnabled() method except that the marker
data is also taken into consideration.
isInfoEnabled in interface Loggermarker - The marker data to take into consideration
public void info(Marker marker,
String msg)
Logger
info in interface Loggermarker - The marker specific to this log statementmsg - the message string to be logged
public void info(Marker marker,
String format,
Object arg)
LoggerLogger.info(String, Object) method except that the
marker data is also taken into consideration.
info in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg - the argument
public void info(Marker marker,
String format,
Object arg1,
Object arg2)
LoggerLogger.info(String, Object, Object)
method except that the marker data is also taken into
consideration.
info in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg1 - the first argumentarg2 - the second argument
public void info(Marker marker,
String format,
Object... arguments)
LoggerLogger.info(String, Object...)
method except that the marker data is also taken into
consideration.
info in interface Loggermarker - the marker data specific to this log statementformat - the format stringarguments - a list of 3 or more arguments
public void info(Marker marker,
String msg,
Throwable t)
LoggerLogger.info(String, Throwable) method
except that the marker data is also taken into consideration.
info in interface Loggermarker - the marker data for this log statementmsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isWarnEnabled()
Logger
isWarnEnabled in interface Loggerpublic void warn(String msg)
Logger
warn in interface Loggermsg - the message string to be logged
public void warn(String format,
Object arg)
LoggerThis form avoids superfluous object creation when the logger is disabled for the WARN level.
warn in interface Loggerformat - the format stringarg - the argument
public void warn(String format,
Object arg1,
Object arg2)
LoggerThis form avoids superfluous object creation when the logger is disabled for the WARN level.
warn in interface Loggerformat - the format stringarg1 - the first argumentarg2 - the second argument
public void warn(String format,
Object... arguments)
LoggerThis 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 Loggerformat - the format stringarguments - a list of 3 or more arguments
public void warn(String msg,
Throwable t)
Logger
warn in interface Loggermsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isWarnEnabled(Marker marker)
LoggerLogger.isWarnEnabled() method except that the marker
data is also taken into consideration.
isWarnEnabled in interface Loggermarker - The marker data to take into consideration
public void warn(Marker marker,
String msg)
Logger
warn in interface Loggermarker - The marker specific to this log statementmsg - the message string to be logged
public void warn(Marker marker,
String format,
Object arg)
LoggerLogger.warn(String, Object) method except that the
marker data is also taken into consideration.
warn in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg - the argument
public void warn(Marker marker,
String format,
Object arg1,
Object arg2)
LoggerLogger.warn(String, Object, Object)
method except that the marker data is also taken into
consideration.
warn in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg1 - the first argumentarg2 - the second argument
public void warn(Marker marker,
String format,
Object... arguments)
LoggerLogger.warn(String, Object...)
method except that the marker data is also taken into
consideration.
warn in interface Loggermarker - the marker data specific to this log statementformat - the format stringarguments - a list of 3 or more arguments
public void warn(Marker marker,
String msg,
Throwable t)
LoggerLogger.warn(String, Throwable) method
except that the marker data is also taken into consideration.
warn in interface Loggermarker - the marker data for this log statementmsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isErrorEnabled()
Logger
isErrorEnabled in interface Loggerpublic void error(String msg)
Logger
error in interface Loggermsg - the message string to be logged
public void error(String format,
Object arg)
LoggerThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
error in interface Loggerformat - the format stringarg - the argument
public void error(String format,
Object arg1,
Object arg2)
LoggerThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
error in interface Loggerformat - the format stringarg1 - the first argumentarg2 - the second argument
public void error(String format,
Object... arguments)
LoggerThis 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 Loggerformat - the format stringarguments - a list of 3 or more arguments
public void error(String msg,
Throwable t)
Logger
error in interface Loggermsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean isErrorEnabled(Marker marker)
LoggerLogger.isErrorEnabled() method except that the
marker data is also taken into consideration.
isErrorEnabled in interface Loggermarker - The marker data to take into consideration
public void error(Marker marker,
String msg)
Logger
error in interface Loggermarker - The marker specific to this log statementmsg - the message string to be logged
public void error(Marker marker,
String format,
Object arg)
LoggerLogger.error(String, Object) method except that the
marker data is also taken into consideration.
error in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg - the argument
public void error(Marker marker,
String format,
Object arg1,
Object arg2)
LoggerLogger.error(String, Object, Object)
method except that the marker data is also taken into
consideration.
error in interface Loggermarker - the marker data specific to this log statementformat - the format stringarg1 - the first argumentarg2 - the second argument
public void error(Marker marker,
String format,
Object... arguments)
LoggerLogger.error(String, Object...)
method except that the marker data is also taken into
consideration.
error in interface Loggermarker - the marker data specific to this log statementformat - the format stringarguments - a list of 3 or more arguments
public void error(Marker marker,
String msg,
Throwable t)
LoggerLogger.error(String, Throwable)
method except that the marker data is also taken into
consideration.
error in interface Loggermarker - the marker data specific to this log statementmsg - the message accompanying the exceptiont - the exception (throwable) to logpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setDelegate(Logger delegate)
LoggerFactory initialization phase is completed.
delegate -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||