code: def setup_logger(logging_level, logging_format):
      
      logger = logging.getLogger("ray")
      if type(logging_level) is str:
          logging_level = logging.getLevelName(logging_level.upper())
      logger.setLevel(logging_level)
      global _default_handler
      if _default_handler is None:
          _default_handler = logging.StreamHandler()
          logger.addHandler(_default_handler)
      _default_handler.setFormatter(logging.Formatter(logging_format))
      logger.propagate = False
docs: Setup default logging for ray.