B2G/gecko/toolkit/devtools/Console.jsm
/**
 * Create a function which will output a concise level of output when used
 * as a logging function
 *
 * @param {string} aLevel
 *        A prefix to all output generated from this function detailing the
 *        level at which output occurred
 * @return {function}
 *        A logging function
 * @see createMultiLineDumper()
 */
Create a function which will output a concise level of output when used
as a logging function

@param {string} aLevel
A prefix to all output generated from this function detailing the
level at which output occurred
@return {function}
A logging function
@see createMultiLineDumper()
Create a function which will output a concise level of output when used as a logging function @param { string } aLevel A prefix to all output generated from this function detailing the level at which output occurred @return { function } A logging function @see createMultiLineDumper ()
function createDumper(aLevel) {
  return function() {
    let args = Array.prototype.slice.call(arguments, 0);
    let data = args.map(function(arg) {
      return stringify(arg);
    });
    dump(aLevel + ": " + data.join(", ") + "\n");
  };
}
function createDumper ( aLevel ) { return function ( ) { let args = Array . prototype . slice . call ( arguments , 0 ) ; let data = args . map ( function ( arg ) { return stringify ( arg ) ; } ) ; dump ( aLevel + ": " + data . join ( ", " ) + "\n" ) ; } ; }
Create a function which will output a concise level of output when used
 as a logging function
Create a function which will output a concise level of output when used as a logging function