lib/utils.js
function log(type) {
  var messages = Array.prototype.slice.call(arguments);
  messages.shift();
  // Concatenate default strings and first message argument into
  // one string so we can use `printf`-like replacement
  var first = "JPM [" + type + "] " + (messages.shift() + "");

  if (process.env.NODE_ENV !== "test") {
    console.log.apply(console, [first].concat(messages)); // eslint-disable-line no-console
  }
}
function log(type) {
  var messages = Array.prototype.slice.call(arguments);
  messages.shift();
  // Concatenate default strings and first message argument into
  // one string so we can use `printf`-like replacement
  var first = "JPM [" + type + "] " + (messages.shift() + "");

  if (process.env.NODE_ENV !== "test") {
    console.log.apply(console, [first].concat(messages)); // eslint-disable-line no-console
  }
}
function log ( type ) { var messages = Array . prototype . slice . call ( arguments ) ; messages . shift ( ) ; // Concatenate default strings and first message argument into // one string so we can use `printf`-like replacement var first = "JPM [" + type + "] " + ( messages . shift ( ) + "" ) ; if ( process . env . NODE_ENV !== "test" ) { console . log . apply ( console , [ first ] . concat ( messages ) ) ; // eslint-disable-line no-console } }
Exports a `console` object that has several methods
similar to a traditional console like `log`, `warn`, `error`,
and `verbose`, which feed through a simple logging messenger.

@param {String} type
@param {String} messages...
Exports a console object that has several methods similar to a traditional console like log warn error and verbose which feed through a simple logging messenger .