code: def append_logs_to_result_object(result_obj, result):
      
      logs = result.has_logs()
      result_obj["exec"]["logs"] = []
      if logs and result.logfiles:
          for log in logs:
              typ = None
              parts = log.split(os.sep)
              if "bench" in parts[len(parts) - 1]:
                  typ = "framework"
              # elif "Dut" in parts[len(parts)-1]:
              #    typ = "dut"
  
              if typ is not None:
                  name = parts[len(parts) - 1]
                  try:
                      with open(log, "r") as file_name:
                          data = file_name.read()
                      dic = {"data": data, "name": name, "from": typ}
                      result_obj["exec"]["logs"].append(dic)
                  except OSError:
                      pass
              else:
                  continue
docs: Append log files to cloud result object from Result.
  
      :param result_obj: Target result object
      :param result: Result
      :return: Nothing, modifies result_obj in place.