code: function format(value) {
      if (typeof value == 'number')
        return value;
  
      var str = String(value);
      var ary = str.split('\n').map((e) => JSON.stringify(e));
      if (ary.length > 1) {
        // If the string has newlines, start it off on its own line so that
        // it's easier to compare against another string with newlines.
        return '\n' + ary.join('\n');
      } else {
        return ary.join('\n');
      }
    }
docs: Utility function to pretty up the log.