lib/utils.js
function log(type, info, furtherInfo) {
  if (!this.logEmitter) {
    if (!this.options || !this.options.logEmitter) {
      throw new Error('Log emitter not defined');
    }
    this.logEmitter = this.options.logEmitter;
  }
  this.logEmitter('log', type, this.constructor.name, info, furtherInfo || '');
}
function log(type, info, furtherInfo) {
  if (!this.logEmitter) {
    if (!this.options || !this.options.logEmitter) {
      throw new Error('Log emitter not defined');
    }
    this.logEmitter = this.options.logEmitter;
  }
  this.logEmitter('log', type, this.constructor.name, info, furtherInfo || '');
}
function log ( type , info , furtherInfo ) { if ( ! this . logEmitter ) { if ( ! this . options || ! this . options . logEmitter ) { throw new Error ( 'Log emitter not defined' ) ; } this . logEmitter = this . options . logEmitter ; } this . logEmitter ( 'log' , type , this . constructor . name , info , furtherInfo || '' ) ; }
Uses the logEmitter to emit log events
@param {String} type
@param {String} info
@param [furtherInfo]
Uses the logEmitter to emit log events