docs: def config_logging(level):
      """
      Configure the logging given the level desired
      """
  
      logger = logging.getLogger('')
      logger.setLevel(level)
      if level < logging.DEBUG:
          log_format = "%(asctime)s %(message)s"
      else:
          log_format = "%(asctime)s %(module)s : %(lineno)d  %(message)s"
      sh = logging.StreamHandler()
      sh.formatter = logging.Formatter(fmt=log_format)
      logger.handlers = []
      logger.addHandler(sh)