function lookupLevel(level) {
    if (typeof level === 'string') {
      var levelMap = utils.indexOf(logger.methodMap, level.toLowerCase());
      if (levelMap >= 0) {
        level = levelMap;
      } else {
        level = parseInt(level, 10);
      }
    }

    return level;
  }
// Maps a given level value to the `methodMap` indexes above.
Maps a given level value to the `methodMap` indexes above.
Maps a given level value to the ` methodMap ` indexes above .
function lookupLevel(level) {
    if (typeof level === 'string') {
      var levelMap = utils.indexOf(logger.methodMap, level.toLowerCase());
      if (levelMap >= 0) {
        level = levelMap;
      } else {
        level = parseInt(level, 10);
      }
    }
    return level;
  }
function lookupLevel ( level ) { if ( typeof level === 'string' ) { var levelMap = utils . indexOf ( logger . methodMap , level . toLowerCase ( ) ) ; if ( levelMap >= 0 ) { level = levelMap ; } else { level = parseInt ( level , 10 ) ; } } return level ; }
Maps a given level value to the `methodMap` indexes above.
Maps a given level value to the ` methodMap ` indexes above .