Class Logger


  • public class Logger
    extends Category

    This class is a minimal implementation of the original org.apache.log4j.Logger class (as found in log4j 1.2) delegating all calls to a Logger instance.

    Author:
    Ceki Gülcü
    • Constructor Detail

      • Logger

        protected Logger​(java.lang.String name)
    • Method Detail

      • getRootLogger

        public static Logger getRootLogger()
        Does the obvious.
        Returns:
        the root logger
      • isTraceEnabled

        public boolean isTraceEnabled()
        Delegates to Logger.isTraceEnabled() method of SLF4J.
        Returns:
        whether this logger is enabled for the level TRACE
      • trace

        public void trace​(java.lang.Object message)
        Delegates to Logger.trace(String) method in SLF4J.
        Parameters:
        message - the message to log
      • trace

        public void trace​(java.lang.Object message,
                          java.lang.Throwable t)
        Delegates to Logger.trace(String,Throwable) method in SLF4J.
        Parameters:
        message - the message to log
        t - a Throwable to log