Class Log4jLoggerFactory


  • class Log4jLoggerFactory
    extends java.lang.Object
    This class is a factory that creates and maintains org.apache.log4j.Loggers wrapping org.slf4j.Loggers. It keeps a hashtable of all created org.apache.log4j.Logger instances so that all newly created instances are not duplicates of existing loggers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.concurrent.ConcurrentMap<java.lang.String,​Logger> log4jLoggers  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Logger getLogger​(java.lang.String name)  
      static Logger getLogger​(java.lang.String name, LoggerFactory loggerFactory)  
      • Methods inherited from class java.lang.Object

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

      • log4jLoggers

        private static java.util.concurrent.ConcurrentMap<java.lang.String,​Logger> log4jLoggers
    • Constructor Detail

      • Log4jLoggerFactory

        Log4jLoggerFactory()
    • Method Detail

      • getLogger

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

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