code: function log( func, msg ){
    var logline = '['+func+'] '+msg;
  
    if ( logInfo ) {
      if ( logInfoStr == '' ) {
        console.log( logline );      
      } else if ( logInfoStr.indexOf( func ) >= 0 ) { 
        console.log( logline );
      }
    }
  
    // send log to event broker
    if ( loggerEvents ) { 
      var logBroker = getEventBroker('log');
      logBroker.cleanupQueue( 1000 );
      logBroker.queueEvent( { text: logline, channel:'log' } );
    }
    
  }
docs: =====================================================================================================