lib/logger.js
function level(lvl) {
  if(!lvl) return this._level;
  if(!~LEVELS.indexOf(lvl)) {
    throw new Error('invalid log level: ' + lvl);
  }
  this._level = lvl;
  return this._level;
}
function level(lvl) {
  if(!lvl) return this._level;
  if(!~LEVELS.indexOf(lvl)) {
    throw new Error('invalid log level: ' + lvl);
  }
  this._level = lvl;
  return this._level;
}
function level ( lvl ) { if ( ! lvl ) return this . _level ; if ( ! ~ LEVELS . indexOf ( lvl ) ) { throw new Error ( 'invalid log level: ' + lvl ) ; } this . _level = lvl ; return this . _level ; }
Get or set the log level.
Get or set the log level .