Class SLF4JLogFactory.LogAdapter

  • All Implemented Interfaces:
    Log
    Enclosing class:
    SLF4JLogFactory

    public static class SLF4JLogFactory.LogAdapter
    extends java.lang.Object
    implements Log
    Adapts a Log4J logger to the Log interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.Object o)  
      void debug​(java.lang.Object o, java.lang.Throwable t)  
      void error​(java.lang.Object o)
      Write out a log message at the Log.ERROR level with the stringification of o as the body of the message, also outputting t to the log.
      void error​(java.lang.Object o, java.lang.Throwable t)
      Write out a log message at the Log.ERROR level with the stringification of o as the body of the message, also outputting t to the log.
      void fatal​(java.lang.Object o)
      Write out a log message at the Log.FATAL level with the stringification of o as the body of the message, also outputting t to the log.
      void fatal​(java.lang.Object o, java.lang.Throwable t)
      Write out a log message at the Log.FATAL level with the stringification of o as the body of the message, also outputting t to the log.
      org.slf4j.Logger getDelegate()  
      void info​(java.lang.Object o)
      Write out a log message at the Log.INFO level with the stringification of o as the body of the message, also outputting t to the log.
      void info​(java.lang.Object o, java.lang.Throwable t)
      Write out a log message at the Log.INFO level with the stringification of o as the body of the message, also outputting t to the log.
      boolean isDebugEnabled()  
      boolean isErrorEnabled()
      Returns if the Log.ERROR log level is enabled.
      boolean isFatalEnabled()
      Returns if the Log.FATAL log level is enabled.
      boolean isInfoEnabled()
      Returns if the Log.INFO log level is enabled.
      boolean isTraceEnabled()
      Returns if the Log.TRACE log level is enabled.
      boolean isWarnEnabled()
      Returns if the Log.WARN log level is enabled.
      void trace​(java.lang.Object o)
      Write out a log message at the Log.TRACE level with the stringification of o as the body of the message.
      void trace​(java.lang.Object o, java.lang.Throwable t)
      Write out a log message at the Log.TRACE level with the stringification of o as the body of the message, also outputting t to the log.
      void warn​(java.lang.Object o)
      Write out a log message at the Log.WARN level with the stringification of o as the body of the message, also outputting t to the log.
      void warn​(java.lang.Object o, java.lang.Throwable t)
      Write out a log message at the Log.WARN level with the stringification of o as the body of the message, also outputting t to the log.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDelegate

        public org.slf4j.Logger getDelegate()
      • isTraceEnabled

        public boolean isTraceEnabled()
        Description copied from interface: Log
        Returns if the Log.TRACE log level is enabled.
        Specified by:
        isTraceEnabled in interface Log
      • isDebugEnabled

        public boolean isDebugEnabled()
      • isInfoEnabled

        public boolean isInfoEnabled()
        Description copied from interface: Log
        Returns if the Log.INFO log level is enabled.
        Specified by:
        isInfoEnabled in interface Log
      • isWarnEnabled

        public boolean isWarnEnabled()
        Description copied from interface: Log
        Returns if the Log.WARN log level is enabled.
        Specified by:
        isWarnEnabled in interface Log
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from interface: Log
        Returns if the Log.ERROR log level is enabled.
        Specified by:
        isErrorEnabled in interface Log
      • isFatalEnabled

        public boolean isFatalEnabled()
        Description copied from interface: Log
        Returns if the Log.FATAL log level is enabled.
        Specified by:
        isFatalEnabled in interface Log
      • trace

        public void trace​(java.lang.Object o)
        Description copied from interface: Log
        Write out a log message at the Log.TRACE level with the stringification of o as the body of the message.
        Specified by:
        trace in interface Log
      • trace

        public void trace​(java.lang.Object o,
                          java.lang.Throwable t)
        Description copied from interface: Log
        Write out a log message at the Log.TRACE level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        trace in interface Log
      • debug

        public void debug​(java.lang.Object o)
      • debug

        public void debug​(java.lang.Object o,
                          java.lang.Throwable t)
      • info

        public void info​(java.lang.Object o)
        Description copied from interface: Log
        Write out a log message at the Log.INFO level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        info in interface Log
      • info

        public void info​(java.lang.Object o,
                         java.lang.Throwable t)
        Description copied from interface: Log
        Write out a log message at the Log.INFO level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        info in interface Log
      • warn

        public void warn​(java.lang.Object o)
        Description copied from interface: Log
        Write out a log message at the Log.WARN level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        warn in interface Log
      • warn

        public void warn​(java.lang.Object o,
                         java.lang.Throwable t)
        Description copied from interface: Log
        Write out a log message at the Log.WARN level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        warn in interface Log
      • error

        public void error​(java.lang.Object o)
        Description copied from interface: Log
        Write out a log message at the Log.ERROR level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        error in interface Log
      • error

        public void error​(java.lang.Object o,
                          java.lang.Throwable t)
        Description copied from interface: Log
        Write out a log message at the Log.ERROR level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        error in interface Log
      • fatal

        public void fatal​(java.lang.Object o)
        Description copied from interface: Log
        Write out a log message at the Log.FATAL level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        fatal in interface Log
      • fatal

        public void fatal​(java.lang.Object o,
                          java.lang.Throwable t)
        Description copied from interface: Log
        Write out a log message at the Log.FATAL level with the stringification of o as the body of the message, also outputting t to the log.
        Specified by:
        fatal in interface Log