SLF4J 1.0-rc6

org.slf4j.impl
Class MNOPLogger

java.lang.Object
  |
  +--org.slf4j.impl.NOPLogger
        |
        +--org.slf4j.impl.MNOPLogger
All Implemented Interfaces:
Logger, MarkingLogger

public final class MNOPLogger
extends NOPLogger
implements MarkingLogger

A direct NOP (no operation) implementation of Logger.

Author:
Ceki Gülcü

Field Summary
static MNOPLogger MNOP_LOGGER
          The unique instance of MNOPLogger.
 
Fields inherited from class org.slf4j.impl.NOPLogger
NOP_LOGGER
 
Method Summary
 void debug(Marker marker, java.lang.String msg)
          A NOP implementation.
 void debug(Marker marker, java.lang.String format, java.lang.Object arg)
          A NOP implementation.
 void debug(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
          A NOP implementation.
 void debug(Marker marker, java.lang.String msg, java.lang.Throwable t)
          A NOP implementation.
 void error(Marker marker, java.lang.String msg)
          A NOP implementation.
 void error(Marker marker, java.lang.String format, java.lang.Object arg)
          A NOP implementation.
 void error(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
          A NOP implementation.
 void error(Marker marker, java.lang.String msg, java.lang.Throwable t)
          A NOP implementation.
 java.lang.String getName()
          Always returns the string value "MNOP".
 void info(Marker marker, java.lang.String msg)
          A NOP implementation.
 void info(Marker marker, java.lang.String format, java.lang.Object arg)
          A NOP implementation.
 void info(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
          A NOP implementation.
 void info(Marker marker, java.lang.String msg, java.lang.Throwable t)
          A NOP implementation.
 boolean isDebugEnabled(Marker marker)
          Always returns false.
 boolean isErrorEnabled(Marker marker)
          A NOP implementation.
 boolean isInfoEnabled(Marker marker)
          Similar to NOPLogger.isInfoEnabled() method except that the marker data is also taken into consideration.
 boolean isWarnEnabled(Marker marker)
          Always false.
 void warn(Marker marker, java.lang.String msg)
          A NOP implementation.
 void warn(Marker marker, java.lang.String format, java.lang.Object arg)
          A NOP implementation.
 void warn(Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
          A NOP implementation.
 void warn(Marker marker, java.lang.String msg, java.lang.Throwable t)
          A NOP implementation.
 
Methods inherited from class org.slf4j.impl.NOPLogger
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.slf4j.Logger
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn, warn
 

Field Detail

MNOP_LOGGER

public static final MNOPLogger MNOP_LOGGER
The unique instance of MNOPLogger.

Method Detail

getName

public java.lang.String getName()
Always returns the string value "MNOP".

Specified by:
getName in interface Logger
Overrides:
getName in class NOPLogger

debug

public void debug(Marker marker,
                  java.lang.String msg)
A NOP implementation.

Specified by:
debug in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
msg - the message string to be logged

debug

public void debug(Marker marker,
                  java.lang.String format,
                  java.lang.Object arg)
A NOP implementation.

Specified by:
debug in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg - the argument

debug

public void debug(Marker marker,
                  java.lang.String format,
                  java.lang.Object arg1,
                  java.lang.Object arg2)
A NOP implementation.

Specified by:
debug in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg1 - the first argument
arg2 - the second argument

debug

public void debug(Marker marker,
                  java.lang.String msg,
                  java.lang.Throwable t)
A NOP implementation.

Specified by:
debug in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
msg - the message accompanying the exception
t - the exception (throwable) to log

isDebugEnabled

public boolean isDebugEnabled(Marker marker)
Always returns false.

Specified by:
isDebugEnabled in interface MarkingLogger
Parameters:
marker - The marker data to take into consideration
Returns:
always false

info

public void info(Marker marker,
                 java.lang.String msg)
A NOP implementation.

Specified by:
info in interface MarkingLogger
Parameters:
marker - The marker specific to this log statement
msg - the message string to be logged

info

public void info(Marker marker,
                 java.lang.String format,
                 java.lang.Object arg)
A NOP implementation.

Specified by:
info in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg - the argument

info

public void info(Marker marker,
                 java.lang.String format,
                 java.lang.Object arg1,
                 java.lang.Object arg2)
A NOP implementation.

Specified by:
info in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg1 - the first argument
arg2 - the second argument

info

public void info(Marker marker,
                 java.lang.String msg,
                 java.lang.Throwable t)
A NOP implementation.

Specified by:
info in interface MarkingLogger
Parameters:
marker - the marker data for this log statement
msg - the message accompanying the exception
t - the exception (throwable) to log

isInfoEnabled

public boolean isInfoEnabled(Marker marker)
Description copied from interface: MarkingLogger
Similar to Logger.isInfoEnabled() method except that the marker data is also taken into consideration.

Specified by:
isInfoEnabled in interface MarkingLogger
Parameters:
marker - The marker data to take into consideration

warn

public void warn(Marker marker,
                 java.lang.String msg)
A NOP implementation.

Specified by:
warn in interface MarkingLogger
Parameters:
marker - The marker specific to this log statement
msg - the message string to be logged

warn

public void warn(Marker marker,
                 java.lang.String format,
                 java.lang.Object arg)
A NOP implementation.

Specified by:
warn in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg - the argument

warn

public void warn(Marker marker,
                 java.lang.String format,
                 java.lang.Object arg1,
                 java.lang.Object arg2)
A NOP implementation.

Specified by:
warn in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg1 - the first argument
arg2 - the second argument

warn

public void warn(Marker marker,
                 java.lang.String msg,
                 java.lang.Throwable t)
A NOP implementation.

Specified by:
warn in interface MarkingLogger
Parameters:
marker - the marker data for this log statement
msg - the message accompanying the exception
t - the exception (throwable) to log

isWarnEnabled

public boolean isWarnEnabled(Marker marker)
Always false.

Specified by:
isWarnEnabled in interface MarkingLogger
Parameters:
marker - The marker data to take into consideration

error

public void error(Marker marker,
                  java.lang.String msg)
A NOP implementation.

Specified by:
error in interface MarkingLogger
Parameters:
marker - The marker specific to this log statement
msg - the message string to be logged

error

public void error(Marker marker,
                  java.lang.String format,
                  java.lang.Object arg)
A NOP implementation.

Specified by:
error in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg - the argument

error

public final void error(Marker marker,
                        java.lang.String format,
                        java.lang.Object arg1,
                        java.lang.Object arg2)
A NOP implementation.

Specified by:
error in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
format - the format string
arg1 - the first argument
arg2 - the second argument

error

public void error(Marker marker,
                  java.lang.String msg,
                  java.lang.Throwable t)
A NOP implementation.

Specified by:
error in interface MarkingLogger
Parameters:
marker - the marker data specific to this log statement
msg - the message accompanying the exception
t - the exception (throwable) to log

isErrorEnabled

public final boolean isErrorEnabled(Marker marker)
A NOP implementation.

Specified by:
isErrorEnabled in interface MarkingLogger
Parameters:
marker - The marker data to take into consideration

Copyright 2004-2006 SLF4J.ORG, QOS.ch