Class LoggerFactory


  • public class LoggerFactory
    extends java.lang.Object
    A factory for Logger instances that uses SLF4J if present, falling back on a java.util.logging implementation otherwise.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static boolean USE_SLF4J  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggerFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Logger getLogger​(java.lang.Class<?> hostClass)
      Get a Logger instance for the given host class.
      • Methods inherited from class java.lang.Object

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

      • USE_SLF4J

        static final boolean USE_SLF4J
    • Constructor Detail

      • LoggerFactory

        public LoggerFactory()
    • Method Detail

      • getLogger

        public static Logger getLogger​(java.lang.Class<?> hostClass)
        Get a Logger instance for the given host class.
        Parameters:
        hostClass - the host class from which log messages will be issued
        Returns:
        a Logger