code: def run_recipe(recipe, task, rinput, workenv, logger_control):
      
  
      # Creating custom logger file
      recipe_logger = logging.getLogger(logger_control['default'])
  
      if logger_control['enabled']:
          logfile = os.path.join(workenv.resultsdir, logger_control['logfile'])
          logformat = logger_control['format']
          _logger.debug('creating file logger %r from Recipe logger', logfile)
          fh = create_recipe_file_logger(recipe_logger, logfile, logformat)
      else:
          fh = logging.NullHandler()
  
      recipe_logger.addHandler(fh)
  
      with working_directory(workenv.workdir):
          try:
              run_recipe_timed(task, recipe, rinput)
              return task
          finally:
              recipe_logger.removeHandler(fh)
docs: Recipe execution mode of numina.