Class JGroupsLogger

  • All Implemented Interfaces:
    org.jgroups.logging.Log

    public class JGroupsLogger
    extends Object
    implements org.jgroups.logging.Log
    Implementation of a JGroups Log that logs messages via sl4j.
    Since:
    3.1.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • JGroupsLogger

        public JGroupsLogger​(org.slf4j.Logger logger)
        Creates a new JGroups logger that logs message via the given sl4j logger.
        Parameters:
        logger - The sl4j logger to use for logging messages.
    • Method Detail

      • isFatalEnabled

        public boolean isFatalEnabled()
        Specified by:
        isFatalEnabled in interface org.jgroups.logging.Log
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.jgroups.logging.Log
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.jgroups.logging.Log
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.jgroups.logging.Log
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.jgroups.logging.Log
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.jgroups.logging.Log
      • trace

        public void trace​(String msg)
        Specified by:
        trace in interface org.jgroups.logging.Log
      • trace

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

        public void trace​(String msg,
                          Throwable t)
        Specified by:
        trace in interface org.jgroups.logging.Log
      • debug

        public void debug​(String msg)
        Specified by:
        debug in interface org.jgroups.logging.Log
      • debug

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

        public void debug​(String msg,
                          Throwable t)
        Specified by:
        debug in interface org.jgroups.logging.Log
      • info

        public void info​(String msg)
        Specified by:
        info in interface org.jgroups.logging.Log
      • info

        public void info​(String msg,
                         Object... args)
        Specified by:
        info in interface org.jgroups.logging.Log
      • warn

        public void warn​(String msg)
        Specified by:
        warn in interface org.jgroups.logging.Log
      • warn

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

        public void warn​(String msg,
                         Throwable t)
        Specified by:
        warn in interface org.jgroups.logging.Log
      • error

        public void error​(String msg)
        Specified by:
        error in interface org.jgroups.logging.Log
      • error

        public void error​(String msg,
                          Object... args)
        Specified by:
        error in interface org.jgroups.logging.Log
      • error

        public void error​(String msg,
                          Throwable t)
        Specified by:
        error in interface org.jgroups.logging.Log
      • fatal

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

        public void fatal​(String msg)
        Specified by:
        fatal in interface org.jgroups.logging.Log
      • fatal

        public void fatal​(String msg,
                          Throwable throwable)
        Specified by:
        fatal in interface org.jgroups.logging.Log
      • trace

        public void trace​(Object msg)
        Specified by:
        trace in interface org.jgroups.logging.Log
      • setLevel

        public void setLevel​(String level)
        Specified by:
        setLevel in interface org.jgroups.logging.Log
      • getLevel

        public String getLevel()
        Specified by:
        getLevel in interface org.jgroups.logging.Log