docs: function customLogEvent(level) {
  
    // options should contain the appenders and handlers to override the
    // global ones defined in errorAppenders, and errorHandlers.
    // Used by Canadarm.localWatch to wrap local appender calls.
    return function (message, exception, data, settings) {
  
      // If we are are below the current Canadarm.loggingLevel we
      // should not do anything with the passed information.  Return
      // as if nothing happened.
      if (Canadarm.levelOrder.indexOf(level) < Canadarm.levelOrder.indexOf(Canadarm.loggingLevel)) {
        return;
      }
  
      var options = settings || {},
        attrs = gatherErrors(level, exception, message, data, options.appenders);
      pushErrors(attrs, options.handlers);
    };
  }