docstr: Log problem, raise error if problem >= `error_level`
  
  Parameters
  ----------
  logger : log
     log object, implementing ``log`` method
  error_level : int, optional
     If ``self.problem_level`` >= `error_level`, raise error
docstr_tok: ["Log","problem",",","raise","error","if","problem",">","=","`","error_level","`","Parameters","--","--","--","--","--","logger",":","log","log","object",",","implementing","``","log","``","method","error_level",":","int",",","optional","If","``","self.problem_level","``",">","=","`","error_level","`",",","raise","error"]
code: def log_raise(self, logger, error_level=40):
      """Log problem, raise error if problem >= `error_level`
  
      Parameters
      ----------
      logger : log
         log object, implementing ``log`` method
      error_level : int, optional
         If ``self.problem_level`` >= `error_level`, raise error
      """
      logger.log(self.problem_level, self.message)
      if self.problem_level and self.problem_level >= error_level:
          if self.error:
              raise self.error(self.problem_msg)
  
file_path: nibabel/nibabel/batteryrunners.py
label_desc: Use image node_id 7 for calling the Report obj's underlying member method code with example usage: obj.log_raise(logger, error_level) without return types