lib/core.js
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);
  };
}
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);
  };
}
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 ) ; } ; }
Used to generate our custom loggers.

@function customLogEvent
@private

@param {string} level - The level to log the events.

@returns a function that logs what is passed.  Signature is: message, exception, data, settings.
Used to generate our custom loggers .