code: private void buildLog() throws JSONException {
          logs = new JSONObject();
          List<String> list = Log.getReportedEntries();
          if (list != null) {
              logs.put("numberOfEntry", list.size());
              JSONArray array = new JSONArray();
              for (String s : list) {
                  array.put(s);
              }
              logs.put("log", array);
          }
      }
docs: Adds the log entries to the report.
  @throws JSONException if the log entries cannot be added