code: def set_level_for_logger_and_its_handlers(log: logging.Logger,
                                            level: int) -> None:
      
      log.setLevel(level)
      for h in log.handlers:  # type: logging.Handler
          h.setLevel(level)
docs: Set a log level for a log and all its handlers.
  
      Args:
          log: log to modify
          level: log level to set