Class LoggerWrapper

java.lang.Object
org.slf4j.ext.LoggerWrapper
All Implemented Interfaces:
org.slf4j.Logger
Direct Known Subclasses:
LocLogger, XLogger

public class LoggerWrapper extends Object implements org.slf4j.Logger
A helper class wrapping an Logger instance preserving location information if the wrapped instance supports it.
Author:
Ralph Goers, Ceki Gülcü
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final org.slf4j.Logger
     

    Fields inherited from interface org.slf4j.Logger

    ROOT_LOGGER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoggerWrapper(org.slf4j.Logger logger, String fqcn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Delegate to the appropriate method of the underlying logger.
    void
    debug(String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(String format, Object... argArray)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    debug(org.slf4j.Marker marker, String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(org.slf4j.Marker marker, String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(org.slf4j.Marker marker, String format, Object... argArray)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    debug(org.slf4j.Marker marker, String msg, Throwable t)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    error(String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    error(String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    error(String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    error(org.slf4j.Marker marker, String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    error(org.slf4j.Marker marker, String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    error(org.slf4j.Marker marker, String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    error(org.slf4j.Marker marker, String msg, Throwable t)
    Delegate to the appropriate method of the underlying logger.
    Delegate to the appropriate method of the underlying logger.
    void
    info(String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    info(String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    info(String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    info(String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    info(org.slf4j.Marker marker, String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    info(org.slf4j.Marker marker, String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    info(org.slf4j.Marker marker, String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    info(org.slf4j.Marker marker, String msg, Throwable t)
    Delegate to the appropriate method of the underlying logger.
    boolean
    Delegate to the appropriate method of the underlying logger.
    boolean
    isDebugEnabled(org.slf4j.Marker marker)
    Delegate to the appropriate method of the underlying logger.
    boolean
    Delegate to the appropriate method of the underlying logger.
    boolean
    isErrorEnabled(org.slf4j.Marker marker)
    Delegate to the appropriate method of the underlying logger.
    boolean
    Delegate to the appropriate method of the underlying logger.
    boolean
    isInfoEnabled(org.slf4j.Marker marker)
    Delegate to the appropriate method of the underlying logger.
    boolean
    Delegate to the appropriate method of the underlying logger.
    boolean
    isTraceEnabled(org.slf4j.Marker marker)
    Delegate to the appropriate method of the underlying logger.
    boolean
     
    boolean
    isWarnEnabled(org.slf4j.Marker marker)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    trace(String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    trace(org.slf4j.Marker marker, String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(org.slf4j.Marker marker, String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(org.slf4j.Marker marker, String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    trace(org.slf4j.Marker marker, String msg, Throwable t)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    Delegate to the appropriate method of the underlying logger.
    void
    warn(org.slf4j.Marker marker, String msg)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(org.slf4j.Marker marker, String format, Object arg)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(org.slf4j.Marker marker, String format, Object... args)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
    Delegate to the appropriate method of the underlying logger.
    void
    warn(org.slf4j.Marker marker, String msg, Throwable t)
    Delegate to the appropriate method of the underlying logger.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.slf4j.Logger

    atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • instanceofLAL

      protected final boolean instanceofLAL
  • Constructor Details

  • Method Details

    • isTraceEnabled

      public boolean isTraceEnabled()
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isTraceEnabled in interface org.slf4j.Logger
    • isTraceEnabled

      public boolean isTraceEnabled(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isTraceEnabled in interface org.slf4j.Logger
    • trace

      public void trace(String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      trace in interface org.slf4j.Logger
    • isDebugEnabled

      public boolean isDebugEnabled()
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isDebugEnabled in interface org.slf4j.Logger
    • isDebugEnabled

      public boolean isDebugEnabled(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isDebugEnabled in interface org.slf4j.Logger
    • debug

      public void debug(String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String format, Object... argArray)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, String format, Object... argArray)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      debug in interface org.slf4j.Logger
    • isInfoEnabled

      public boolean isInfoEnabled()
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isInfoEnabled in interface org.slf4j.Logger
    • isInfoEnabled

      public boolean isInfoEnabled(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isInfoEnabled in interface org.slf4j.Logger
    • info

      public void info(String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      info in interface org.slf4j.Logger
    • isWarnEnabled

      public boolean isWarnEnabled()
      Specified by:
      isWarnEnabled in interface org.slf4j.Logger
    • isWarnEnabled

      public boolean isWarnEnabled(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isWarnEnabled in interface org.slf4j.Logger
    • warn

      public void warn(String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      warn in interface org.slf4j.Logger
    • isErrorEnabled

      public boolean isErrorEnabled()
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isErrorEnabled in interface org.slf4j.Logger
    • isErrorEnabled

      public boolean isErrorEnabled(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      isErrorEnabled in interface org.slf4j.Logger
    • error

      public void error(String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, String msg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, String format, Object arg)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, String format, Object... args)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, String msg, Throwable t)
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      error in interface org.slf4j.Logger
    • getName

      public String getName()
      Delegate to the appropriate method of the underlying logger.
      Specified by:
      getName in interface org.slf4j.Logger