Package org.slf4j.ext

Class LoggerWrapper

  • All Implemented Interfaces:
    org.slf4j.Logger
    Direct Known Subclasses:
    LocLogger, XLogger

    public class LoggerWrapper
    extends java.lang.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 boolean instanceofLAL  
      protected org.slf4j.Logger logger  
      • Fields inherited from interface org.slf4j.Logger

        ROOT_LOGGER_NAME
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void debug​(java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void debug​(java.lang.String format, java.lang.Object... argArray)
      Delegate to the appropriate method of the underlying logger.
      void debug​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void debug​(java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void debug​(org.slf4j.Marker marker, java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void debug​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void debug​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object... argArray)
      Delegate to the appropriate method of the underlying logger.
      void debug​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void debug​(org.slf4j.Marker marker, java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void error​(java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void error​(java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void error​(java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void error​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void error​(java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void error​(org.slf4j.Marker marker, java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void error​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void error​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void error​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void error​(org.slf4j.Marker marker, java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      java.lang.String getName()
      Delegate to the appropriate method of the underlying logger.
      void info​(java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void info​(java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void info​(java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void info​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void info​(java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void info​(org.slf4j.Marker marker, java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void info​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void info​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void info​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void info​(org.slf4j.Marker marker, java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      boolean isDebugEnabled()
      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 isErrorEnabled()
      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 isInfoEnabled()
      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 isTraceEnabled()
      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 isWarnEnabled()  
      boolean isWarnEnabled​(org.slf4j.Marker marker)
      Delegate to the appropriate method of the underlying logger.
      void trace​(java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void trace​(java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void trace​(java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void trace​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void trace​(java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void trace​(org.slf4j.Marker marker, java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void trace​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void trace​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void trace​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void trace​(org.slf4j.Marker marker, java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void warn​(java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void warn​(java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void warn​(java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void warn​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void warn​(java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      void warn​(org.slf4j.Marker marker, java.lang.String msg)
      Delegate to the appropriate method of the underlying logger.
      void warn​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg)
      Delegate to the appropriate method of the underlying logger.
      void warn​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object... args)
      Delegate to the appropriate method of the underlying logger.
      void warn​(org.slf4j.Marker marker, java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      Delegate to the appropriate method of the underlying logger.
      void warn​(org.slf4j.Marker marker, java.lang.String msg, java.lang.Throwable t)
      Delegate to the appropriate method of the underlying logger.
      • 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

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

      • logger

        protected final org.slf4j.Logger logger
    • Constructor Detail

      • LoggerWrapper

        public LoggerWrapper​(org.slf4j.Logger logger,
                             java.lang.String fqcn)
    • Method Detail

      • 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​(java.lang.String msg)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

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

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

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

        public void trace​(java.lang.String msg,
                          java.lang.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,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String msg,
                          java.lang.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​(java.lang.String msg)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

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

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

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

        public void debug​(java.lang.String msg,
                          java.lang.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,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String msg,
                          java.lang.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​(java.lang.String msg)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        info in interface org.slf4j.Logger
      • info

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

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

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

        public void info​(java.lang.String msg,
                         java.lang.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,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.Object arg1,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.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,
                         java.lang.String msg,
                         java.lang.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​(java.lang.String msg)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

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

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

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

        public void warn​(java.lang.String msg,
                         java.lang.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,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.Object arg1,
                         java.lang.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,
                         java.lang.String format,
                         java.lang.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,
                         java.lang.String msg,
                         java.lang.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​(java.lang.String msg)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        error in interface org.slf4j.Logger
      • error

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

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

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

        public void error​(java.lang.String msg,
                          java.lang.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,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.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,
                          java.lang.String format,
                          java.lang.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,
                          java.lang.String msg,
                          java.lang.Throwable t)
        Delegate to the appropriate method of the underlying logger.
        Specified by:
        error in interface org.slf4j.Logger
      • getName

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