Package org.slf4j.helpers
Class NOPLogger
- java.lang.Object
-
- org.slf4j.helpers.MarkerIgnoringBase
-
- org.slf4j.helpers.NOPLogger
-
- All Implemented Interfaces:
java.io.Serializable
,Logger
public class NOPLogger extends MarkerIgnoringBase
A direct NOP (no operation) implementation ofLogger
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NOPLogger
NOP_LOGGER
The unique instance of NOPLogger.-
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String msg)
A NOP implementation.void
debug(java.lang.String format, java.lang.Object arg)
A NOP implementation.void
debug(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.void
debug(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.void
debug(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.void
error(java.lang.String msg)
A NOP implementation.void
error(java.lang.String format, java.lang.Object arg1)
A NOP implementation.void
error(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.void
error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.void
error(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.java.lang.String
getName()
Always returns the string value "NOP".void
info(java.lang.String msg)
A NOP implementation.void
info(java.lang.String format, java.lang.Object arg1)
A NOP implementation.void
info(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.void
info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.void
info(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.boolean
isDebugEnabled()
Always returns false.boolean
isErrorEnabled()
A NOP implementation.boolean
isInfoEnabled()
Always returns false.boolean
isTraceEnabled()
Always returns false.boolean
isWarnEnabled()
Always returns false.void
trace(java.lang.String msg)
A NOP implementation.void
trace(java.lang.String format, java.lang.Object arg)
A NOP implementation.void
trace(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.void
trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.void
trace(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.void
warn(java.lang.String msg)
A NOP implementation.void
warn(java.lang.String format, java.lang.Object arg1)
A NOP implementation.void
warn(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.void
warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.void
warn(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.-
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
-
-
-
Field Detail
-
NOP_LOGGER
public static final NOPLogger NOP_LOGGER
The unique instance of NOPLogger.
-
-
Method Detail
-
getName
public java.lang.String getName()
Always returns the string value "NOP".
-
isTraceEnabled
public final boolean isTraceEnabled()
Always returns false.- Returns:
- always false
-
trace
public final void trace(java.lang.String msg)
A NOP implementation.- Parameters:
msg
- the message string to be logged
-
trace
public final void trace(java.lang.String format, java.lang.Object arg)
A NOP implementation.- Parameters:
format
- the format stringarg
- the argument
-
trace
public final void trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the first argumentarg2
- the second argument
-
trace
public final void trace(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.- Parameters:
format
- the format stringargArray
- a list of 3 or more arguments
-
trace
public final void trace(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.- Parameters:
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
-
isDebugEnabled
public final boolean isDebugEnabled()
Always returns false.- Returns:
- always false
-
debug
public final void debug(java.lang.String msg)
A NOP implementation.- Parameters:
msg
- the message string to be logged
-
debug
public final void debug(java.lang.String format, java.lang.Object arg)
A NOP implementation.- Parameters:
format
- the format stringarg
- the argument
-
debug
public final void debug(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the first argumentarg2
- the second argument
-
debug
public final void debug(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.- Parameters:
format
- the format stringargArray
- a list of 3 or more arguments
-
debug
public final void debug(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.- Parameters:
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
-
isInfoEnabled
public final boolean isInfoEnabled()
Always returns false.- Returns:
- always false
-
info
public final void info(java.lang.String msg)
A NOP implementation.- Parameters:
msg
- the message string to be logged
-
info
public final void info(java.lang.String format, java.lang.Object arg1)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the argument
-
info
public final void info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the first argumentarg2
- the second argument
-
info
public final void info(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.- Parameters:
format
- the format stringargArray
- a list of 3 or more arguments
-
info
public final void info(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.- Parameters:
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
-
isWarnEnabled
public final boolean isWarnEnabled()
Always returns false.- Returns:
- always false
-
warn
public final void warn(java.lang.String msg)
A NOP implementation.- Parameters:
msg
- the message string to be logged
-
warn
public final void warn(java.lang.String format, java.lang.Object arg1)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the argument
-
warn
public final void warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the first argumentarg2
- the second argument
-
warn
public final void warn(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.- Parameters:
format
- the format stringargArray
- a list of 3 or more arguments
-
warn
public final void warn(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.- Parameters:
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
-
isErrorEnabled
public final boolean isErrorEnabled()
A NOP implementation.- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
public final void error(java.lang.String msg)
A NOP implementation.- Parameters:
msg
- the message string to be logged
-
error
public final void error(java.lang.String format, java.lang.Object arg1)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the argument
-
error
public final void error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
A NOP implementation.- Parameters:
format
- the format stringarg1
- the first argumentarg2
- the second argument
-
error
public final void error(java.lang.String format, java.lang.Object... argArray)
A NOP implementation.- Parameters:
format
- the format stringargArray
- a list of 3 or more arguments
-
error
public final void error(java.lang.String msg, java.lang.Throwable t)
A NOP implementation.- Parameters:
msg
- the message accompanying the exceptiont
- the exception (throwable) to log
-
-