docs: function(nameOrNum) {
      if(nameOrNum === undefined) {
        return currentLogLevel;
      }
  
      if(typeof(nameOrNum) === 'string') {
        nameOrNum = levelFromName[nameOrNum.toLowerCase()];
      }
  
      if(nameOrNum === undefined ||
         !(TRACE <= nameOrNum && nameOrNum <= DISABLED)) {
        throw new Error('invalid log level: ' + nameOrNum);
      }
  
      currentLogLevel = nameOrNum;
    }