Class LoggerFactory


  • public class LoggerFactory
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Boolean hasToLog  
      private static Logger NO_LOGGER  
    • 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<?> clazz)
      Initialize logger.
      static void init​(boolean mustLog)
      Initialize factory.
      • Methods inherited from class java.lang.Object

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

      • NO_LOGGER

        private static final Logger NO_LOGGER
      • hasToLog

        private static java.lang.Boolean hasToLog
    • Constructor Detail

      • LoggerFactory

        public LoggerFactory()
    • Method Detail

      • init

        public static void init​(boolean mustLog)
        Initialize factory.
        Parameters:
        mustLog - indicate if must initiate Slf4j log
      • getLogger

        public static Logger getLogger​(java.lang.Class<?> clazz)
        Initialize logger.
        Parameters:
        clazz - initiator class
        Returns:
        logger