function insertMessageRowToMessageLogTable(
    time, type, description, url, pageId) {
  assert(pageId >= 0);
  if (pageId > 0 && window.logTableMap[pageId]) {
    updateTableRowByPageId(time, type, description, url, pageId);
    return;
  }

  let tableRow =
      $('message-logs-table').insertRow(1);  // Index 0 belongs to header row.
  tableRow.setAttribute('class', 'log-message');

  if (pageId > 0) {  // If the new message will be grouped.
    createExpansionRow(tableRow, pageId);
  }

  let timeTd = document.createElement('td');
  timeTd.textContent = getTimeFormat(time);
  timeTd.setAttribute('class', 'log-time');
  tableRow.appendChild(timeTd);

  let typeTd = document.createElement('td');
  typeTd.setAttribute('class', 'log-type');
  typeTd.textContent = type;
  tableRow.appendChild(typeTd);

  let descriptionTd = document.createElement('td');
  descriptionTd.setAttribute('class', 'log-description');
  descriptionTd.textContent = description;
  tableRow.appendChild(descriptionTd);

  if (url.length > 0) {
    let urlTd = createUrlElement(url);
    urlTd.setAttribute('class', 'log-url');
    tableRow.appendChild(urlTd);
  }
}
/**
 * Insert a log message row to the top of the log message table.
 *
 * @param {number!} time Millisecond since Unix Epoch representation of time.
 * @param {string!} type The message event type.
 * @param {string!} description The event message description.
 * @param {string} url The URL associated with the event.
 */
Insert a log message row to the top of the log message table.
@param {number!} time Millisecond since Unix Epoch representation of time.
@param {string!} type The message event type.
@param {string!} description The event message description.
@param {string} url The URL associated with the event.
Insert a log message row to the top of the log message table . @param { number! } time Millisecond since Unix Epoch representation of time . @param { string! } type The message event type . @param { string! } description The event message description . @param { string } url The URL associated with the event .
function insertMessageRowToMessageLogTable(
    time, type, description, url, pageId) {
  assert(pageId >= 0);
  if (pageId > 0 && window.logTableMap[pageId]) {
    updateTableRowByPageId(time, type, description, url, pageId);
    return;
  }
  let tableRow =
      $('message-logs-table').insertRow(1);  
  tableRow.setAttribute('class', 'log-message');
  if (pageId > 0) {  
    createExpansionRow(tableRow, pageId);
  }
  let timeTd = document.createElement('td');
  timeTd.textContent = getTimeFormat(time);
  timeTd.setAttribute('class', 'log-time');
  tableRow.appendChild(timeTd);
  let typeTd = document.createElement('td');
  typeTd.setAttribute('class', 'log-type');
  typeTd.textContent = type;
  tableRow.appendChild(typeTd);
  let descriptionTd = document.createElement('td');
  descriptionTd.setAttribute('class', 'log-description');
  descriptionTd.textContent = description;
  tableRow.appendChild(descriptionTd);
  if (url.length > 0) {
    let urlTd = createUrlElement(url);
    urlTd.setAttribute('class', 'log-url');
    tableRow.appendChild(urlTd);
  }
}
function insertMessageRowToMessageLogTable ( time , type , description , url , pageId ) { assert ( pageId >= 0 ) ; if ( pageId > 0 && window . logTableMap [ pageId ] ) { updateTableRowByPageId ( time , type , description , url , pageId ) ; return ; } let tableRow = $ ( 'message-logs-table' ) . insertRow ( 1 ) ; tableRow . setAttribute ( 'class' , 'log-message' ) ; if ( pageId > 0 ) { createExpansionRow ( tableRow , pageId ) ; } let timeTd = document . createElement ( 'td' ) ; timeTd . textContent = getTimeFormat ( time ) ; timeTd . setAttribute ( 'class' , 'log-time' ) ; tableRow . appendChild ( timeTd ) ; let typeTd = document . createElement ( 'td' ) ; typeTd . setAttribute ( 'class' , 'log-type' ) ; typeTd . textContent = type ; tableRow . appendChild ( typeTd ) ; let descriptionTd = document . createElement ( 'td' ) ; descriptionTd . setAttribute ( 'class' , 'log-description' ) ; descriptionTd . textContent = description ; tableRow . appendChild ( descriptionTd ) ; if ( url . length > 0 ) { let urlTd = createUrlElement ( url ) ; urlTd . setAttribute ( 'class' , 'log-url' ) ; tableRow . appendChild ( urlTd ) ; } }
Insert a log message row to the top of the log message table.
Insert a log message row to the top of the log message table .
// Index 0 belongs to header row. // If the new message will be grouped.