src/utils.js
function log(msg, level, config) {
  // Don't log messages in quiet mode
  if (config && config.quiet) return;
  const logMethod = console[level] || console.log;
  let out = msg;
  if (typeof msg === 'object') {
    out = stringify(msg, null, 2);
  }
  logMethod(`[${chalk.gray('mochawesome')}] ${out}\n`);
}
function log(msg, level, config) {
  // Don't log messages in quiet mode
  if (config && config.quiet) return;
  const logMethod = console[level] || console.log;
  let out = msg;
  if (typeof msg === 'object') {
    out = stringify(msg, null, 2);
  }
  logMethod(`[${chalk.gray('mochawesome')}] ${out}\n`);
}
function log ( msg , level , config ) { // Don't log messages in quiet mode if ( config && config . quiet ) return ; const logMethod = console [ level ] || console . log ; let out = msg ; if ( typeof msg === 'object' ) { out = stringify ( msg , null , 2 ) ; } logMethod ( ` ${ chalk . gray ( 'mochawesome' ) } ${ out } \n ` ) ; }
Return a classname based on percentage

@param {String} msg - message to log
@param {String} level - log level [log, info, warn, error]
@param {Object} config - configuration object
Return a classname based on percentage