Class LoggerFactory


  • public class LoggerFactory
    extends Object
    The LoggerFactory will construct an instance of Logger which will be a wrapper containing the actual Logger. The wrapper logger will be created based on the available classes on the classpath. If SLF4J API is present it will construct a wrapper Logger with SLF4J Logger wrapped in it or else it will try Log4j2 and if that is not available at runtime it will fall back to java-util-logging logger.
    Author:
    Hakan Altindag
    • Method Detail

      • getLogger

        public static <T> Logger getLogger​(Class<T> clazz)
      • getLogger

        public static Logger getLogger​(String name)