docs: function gatherErrors(level, exception, message, data, appenders) {
    var logAttributes = {},
      localAppenders = appenders || errorAppenders,
      errorAppender, attributeName, attributes, i, key;
  
    // Go over every log appender and add it's attributes so we can log them.
    for (i = 0; i < localAppenders.length; i++) {
      errorAppender = localAppenders[i];
      attributes = errorAppender(level, exception, message, data);
  
      for (key in attributes) {
        if (!attributes.hasOwnProperty(key)) {
          continue;
        }
        logAttributes[key] = attributes[key];
      }
    }
  
    return logAttributes;
  }