src/util/log.js
/**
   * @summary **Logger destination handler common function**
   * @description
   * This does the actual formatting of messages for the text line oriented
   * log messages.
   * @param {function} func the actual message output function
   * @param {string} message the text of the message
   * @param {Logger} logger the logger which originate this message
   * @param {number} priority the `Logger.Priority` of the message
   * @alias module:utils/log.defaultLogHandler
   */
@summary **Logger destination handler common function
@description
This does the actual formatting of messages for the text line oriented
log messages.
@summary ** Logger destination handler common function @description This does the actual formatting of messages for the text line oriented log messages .
function defaultLogHandler(func, message, logger, priority) {
    var ptext = '';
    ptext = priority.level > 1 ? '(!)' : ptext;
    var prefix = logger.origin() + ptext + ':';
    var text = prefix + message;
    if (mm.config.inPhantom) {
      console.log(text);
    }
    else {
      if (log.writeLine) {
        log.writeLine(text);
      }
      else {
        func(text);
      }
    }
  }
function defaultLogHandler ( func , message , logger , priority ) { var ptext = '' ; ptext = priority . level > 1 ? '(!)' : ptext ; var prefix = logger . origin ( ) + ptext + ':' ; var text = prefix + message ; if ( mm . config . inPhantom ) { console . log ( text ) ; } else { if ( log . writeLine ) { log . writeLine ( text ) ; } else { func ( text ) ; } } }
@summary **Logger destination handler common function
 @description
 This does the actual formatting of messages for the text line oriented
 log messages.
@summary ** Logger destination handler common function @description This does the actual formatting of messages for the text line oriented log messages .
/* istanbul ignore next */ // For the PhantomJS headless browser, log.debug is a native // function that doesn't like being passed around. /* istanbul ignore if */ /* istanbul ignore else */ // Tested independently.