Class Logger


  • @Deprecated(since="2022-01-27")
    public class Logger
    extends Category
    Deprecated.
    Apache Log4j 1 has reached end of life in 2015 and is no longer supported.

    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.

    • Method Detail

      • getLogger

        public static Logger getLogger​(java.lang.String name)
        Deprecated.
      • getLogger

        public static Logger getLogger​(java.lang.String name,
                                       LoggerFactory loggerFactory)
        Deprecated.
      • getLogger

        public static Logger getLogger​(java.lang.Class clazz)
        Deprecated.
      • getRootLogger

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

        public boolean isTraceEnabled()
        Deprecated.
        Delegates to Logger.isTraceEnabled() method of SLF4J.
      • trace

        public void trace​(java.lang.Object message)
        Deprecated.
        Delegates to Logger.trace(String) method in SLF4J.
      • trace

        public void trace​(java.lang.Object message,
                          java.lang.Throwable t)
        Deprecated.
        Delegates to Logger.trace(String,Throwable) method in SLF4J.