Class Slf4jLogImpl

java.lang.Object
org.jgroups.logging.Slf4jLogImpl
All Implemented Interfaces:
Log

public class Slf4jLogImpl extends Object implements Log
Logger that delivers messages to a SLF4J logger
Since:
4.0.0
  • Field Details

    • LEVELS

      private static final Map<Function<org.slf4j.Logger,Boolean>,String> LEVELS
    • LOCALE

      private static final Locale LOCALE
    • logger

      private final org.slf4j.Logger logger
    • locale

      private final Locale locale
  • Constructor Details

    • Slf4jLogImpl

      public Slf4jLogImpl(Class<?> clazz)
    • Slf4jLogImpl

      public Slf4jLogImpl(String category)
    • Slf4jLogImpl

      public Slf4jLogImpl(Locale locale, org.slf4j.Logger logger)
  • Method Details

    • isFatalEnabled

      public boolean isFatalEnabled()
      Specified by:
      isFatalEnabled in interface Log
    • isErrorEnabled

      public boolean isErrorEnabled()
      Specified by:
      isErrorEnabled in interface Log
    • isWarnEnabled

      public boolean isWarnEnabled()
      Specified by:
      isWarnEnabled in interface Log
    • isInfoEnabled

      public boolean isInfoEnabled()
      Specified by:
      isInfoEnabled in interface Log
    • isDebugEnabled

      public boolean isDebugEnabled()
      Specified by:
      isDebugEnabled in interface Log
    • isTraceEnabled

      public boolean isTraceEnabled()
      Specified by:
      isTraceEnabled in interface Log
    • fatal

      public void fatal(String msg)
      Specified by:
      fatal in interface Log
    • fatal

      public void fatal(String msg, Object... args)
      Specified by:
      fatal in interface Log
    • fatal

      public void fatal(String msg, Throwable throwable)
      Specified by:
      fatal in interface Log
    • error

      public void error(String msg)
      Specified by:
      error in interface Log
    • error

      public void error(String format, Object... args)
      Specified by:
      error in interface Log
    • error

      public void error(String msg, Throwable throwable)
      Specified by:
      error in interface Log
    • warn

      public void warn(String msg)
      Specified by:
      warn in interface Log
    • warn

      public void warn(String msg, Object... args)
      Specified by:
      warn in interface Log
    • warn

      public void warn(String msg, Throwable throwable)
      Specified by:
      warn in interface Log
    • info

      public void info(String msg)
      Specified by:
      info in interface Log
    • info

      public void info(String msg, Object... args)
      Specified by:
      info in interface Log
    • debug

      public void debug(String msg)
      Specified by:
      debug in interface Log
    • debug

      public void debug(String msg, Object... args)
      Specified by:
      debug in interface Log
    • debug

      public void debug(String msg, Throwable throwable)
      Specified by:
      debug in interface Log
    • trace

      public void trace(Object msg)
      Specified by:
      trace in interface Log
    • trace

      public void trace(String msg)
      Specified by:
      trace in interface Log
    • trace

      public void trace(String msg, Object... args)
      Specified by:
      trace in interface Log
    • trace

      public void trace(String msg, Throwable throwable)
      Specified by:
      trace in interface Log
    • setLevel

      public void setLevel(String level)
      Description copied from interface: Log
      Sets the level of a logger. This method is used to dynamically change the logging level of a running system, e.g. via JMX. The appender of a level needs to exist.
      Specified by:
      setLevel in interface Log
      Parameters:
      level - The new level. Valid values are "fatal", "error", "warn", "info", "debug", "trace" (capitalization not relevant)
    • getLevel

      public String getLevel()
      Specified by:
      getLevel in interface Log