def log(text, level = :notice)
      level = allowable_log_level(level)

      if level == :debug && @log_level == :debug
        @task_run.add_log_text(text)
      elsif level == :notice && (@log_level == :debug || @log_level == :notice)
        @task_run.add_log_text(text)
      elsif level == :error
        @task_run.add_error_text(text)
      end
    end
def log(text, level = :notice)
      level = allowable_log_level(level)

      if level == :debug && @log_level == :debug
        @task_run.add_log_text(text)
      elsif level == :notice && (@log_level == :debug || @log_level == :notice)
        @task_run.add_log_text(text)
      elsif level == :error
        @task_run.add_error_text(text)
      end
    end
Adds test to the log for the task run
 Depending on the @log_level, save or don't save the text
 If the level is :error, save to the error log

 @param [String] text The text to add to the log
 @param [Symbol] level The log level of the text