Class LoggerUtil



  • public class LoggerUtil
    extends Object
    This class is used to get a Logger instance.
    • Constructor Detail

      • LoggerUtil

        public LoggerUtil​()
    • Method Detail

      • getLogger

        public static org.apache.logging.log4j.Logger getLogger​(String name)
        Get or create a logger with the given name.
        Parameters:
        name - The name of the logger.
        Returns:
        The logger with the given name.
      • getLogger

        public static org.apache.logging.log4j.Logger getLogger​(Class clazz)
        Gets or creates a logger for the given name.
        Parameters:
        clazz - The class of the logger.
        Returns:
        A logger for the given class.