code: def set_root_logger(root_log_level, log_path=None):
      
      handlers = []
  
      console_handler = logging.StreamHandler()
      handlers.append(console_handler)
      if log_path:
          file_handler = logging.FileHandler(log_path)
          handlers.append(file_handler)
  
      set_logging_config(root_log_level, handlers=handlers)
      root_logger = logging.getLogger("pypyr")
      root_logger.debug(
          f"Root logger {root_logger.name} configured with level "
          f"{root_log_level}")
docs: Set the root logger 'pypyr'. Do this before you do anything else.
  
      Run once and only once at initialization.