lib/state.js
function onConfigLoad() {
  var file = this._conf.get(ConfigName.LOGFILE);
  this._logger.level(this._conf.get(ConfigName.LOGLEVEL));
  //console.dir('config loaded.');
  if(file && !this._conf.get(ConfigName.DAEMONIZE)) {
    this._logger.stream(file);
  }
  if(this._conf.isDefault()) {
    this._logger.warning('no config file specified, using the default config');
  }

  // TODO: listen for log change events and toggle this
  this._scheduler.startDebugLog();

  this._scheduler.start(this._conf.get(ConfigName.HZ));
}
function onConfigLoad() {
  var file = this._conf.get(ConfigName.LOGFILE);
  this._logger.level(this._conf.get(ConfigName.LOGLEVEL));
  //console.dir('config loaded.');
  if(file && !this._conf.get(ConfigName.DAEMONIZE)) {
    this._logger.stream(file);
  }
  if(this._conf.isDefault()) {
    this._logger.warning('no config file specified, using the default config');
  }

  // TODO: listen for log change events and toggle this
  this._scheduler.startDebugLog();

  this._scheduler.start(this._conf.get(ConfigName.HZ));
}
function onConfigLoad ( ) { var file = this . _conf . get ( ConfigName . LOGFILE ) ; this . _logger . level ( this . _conf . get ( ConfigName . LOGLEVEL ) ) ; //console.dir('config loaded.'); if ( file && ! this . _conf . get ( ConfigName . DAEMONIZE ) ) { this . _logger . stream ( file ) ; } if ( this . _conf . isDefault ( ) ) { this . _logger . warning ( 'no config file specified, using the default config' ) ; } // TODO: listen for log change events and toggle this this . _scheduler . startDebugLog ( ) ; this . _scheduler . start ( this . _conf . get ( ConfigName . HZ ) ) ; }
Listener for the config load event.
Listener for the config load event .