function reformatLogLine(logLine, metadata) {
  // Add the metadata to a copy of the logLine
  const formattedLine = Object.assign({}, logLine, metadata)

  if (formattedLine.exception === true) {
    reformatError(formattedLine)
  }

  reformatTimestamp(formattedLine)

  return formattedLine
}
Reformats a log line by reformatting errors, timestamp and adding
new relic linking metadata(context). When uncaught exceptions exist
an exception property will exist on the log line.  This will tell us
that we need to reformat the error

@param {object} logLine log line
@param {object} metadata linking metadata
@returns {object} copy of log line with NR linking metadata