B2G/gecko/toolkit/devtools/Console.jsm
/**
 * Create a function which will output more detailed 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 createDumper()
 */
Create a function which will output more detailed 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 createDumper()
Create a function which will output more detailed 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 createDumper ()
function createMultiLineDumper(aLevel) {
  return function() {
    dump(aLevel + "\n");
    let args = Array.prototype.slice.call(arguments, 0);
    args.forEach(function(arg) {
      dump(log(arg));
    });
  };
}
function createMultiLineDumper ( aLevel ) { return function ( ) { dump ( aLevel + "\n" ) ; let args = Array . prototype . slice . call ( arguments , 0 ) ; args . forEach ( function ( arg ) { dump ( log ( arg ) ) ; } ) ; } ; }
Create a function which will output more detailed level of output when
 used as a logging function
Create a function which will output more detailed level of output when used as a logging function