docs: def log_level(self,
                level: typing.Union[str, int]=None,
                *args,
                **kwargs) -> typing.Union[None, str]:
      """
      Args:
          level:
  
      Returns:
          The log level if a `level` is passed in
      """
      if level is None:
          return self.root_logger.getEffectiveLevel()
      # NOTE: `setLevel` takes both string and integers. Try to cast to an integer first
      try:
          value = int(level)
      # if we can't cast to an int, it's probably a string
      except ValueError:
          pass
  
      self.root_logger.setLevel(value)