logger.js
function disable(namespaces) {
  var split = (namespaces || '').split(/[\s,]+/);
  var len = split.length;

  function removeNamespaceFromNames(namespaces){
    _.remove(exports.names, function(name){
      return name.toString() === '/^' + namespaces + '$/';
    });
  }

  for (var i = 0; i < len; i++) {
    if (!split[i]) continue; // ignore empty strings
    namespaces = split[i].replace(/\*/g, '.*?');
    if (namespaces[0] === '-') {
      exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
    } else {
      removeNamespaceFromNames(namespaces);
      exports.skips.push(new RegExp('^' + namespaces + '$'));
      loggerEventBus.emit('disable', split[i]);
    }
  }

  exports.save(namespaces);
}
function disable(namespaces) {
  var split = (namespaces || '').split(/[\s,]+/);
  var len = split.length;

  function removeNamespaceFromNames(namespaces){
    _.remove(exports.names, function(name){
      return name.toString() === '/^' + namespaces + '$/';
    });
  }

  for (var i = 0; i < len; i++) {
    if (!split[i]) continue; // ignore empty strings
    namespaces = split[i].replace(/\*/g, '.*?');
    if (namespaces[0] === '-') {
      exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
    } else {
      removeNamespaceFromNames(namespaces);
      exports.skips.push(new RegExp('^' + namespaces + '$'));
      loggerEventBus.emit('disable', split[i]);
    }
  }

  exports.save(namespaces);
}
function disable ( namespaces ) { var split = ( namespaces || '' ) . split ( / [\s,]+ / ) ; var len = split . length ; function removeNamespaceFromNames ( namespaces ) { _ . remove ( exports . names , function ( name ) { return name . toString ( ) === '/^' + namespaces + '$/' ; } ) ; } for ( var i = 0 ; i < len ; i ++ ) { if ( ! split [ i ] ) continue ; // ignore empty strings namespaces = split [ i ] . replace ( / \* / g , '.*?' ) ; if ( namespaces [ 0 ] === '-' ) { exports . skips . push ( new RegExp ( '^' + namespaces . substr ( 1 ) + '$' ) ) ; } else { removeNamespaceFromNames ( namespaces ) ; exports . skips . push ( new RegExp ( '^' + namespaces + '$' ) ) ; loggerEventBus . emit ( 'disable' , split [ i ] ) ; } } exports . save ( namespaces ) ; }
Disables a debug mode by namespaces. This can include modes
separated by a colon and wildcards.

@param {String} namespaces
@api public
Disables a debug mode by namespaces . This can include modes separated by a colon and wildcards .