Returns the logger
        Parameters
        ----------
        name : logger name
        level : logging.level (par default logging.INFO)
            
        Return
        ------
        Returns the logger

def getLogger(name, level = logging.INFO):
        """Returns the logger
        Parameters
        ----------
        name : logger name
        level : logging.level (par default logging.INFO)
            
        Return
        ------
        Returns the logger

        """
        # create logger
        logger = logging.getLogger(name) 
        logger.setLevel(level)
        # create console handler and set level to debug
        ch = logging.StreamHandler()
        ch.setLevel(level)
        # create formatter
        formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
        # add formatter to ch
        ch.setFormatter(formatter)
        # add ch to logger
        logger.addHandler(ch)
        return logger