docs: function getLevel(nameOrValue) {
    if (typeof nameOrValue === 'string') {
      return LEVELS_BY_NAME.get(nameOrValue) || Level.ALL;
    }
    if (typeof nameOrValue !== 'number') {
      throw new TypeError('not a string or number');
    }
    for (let level of ALL_LEVELS) {
      if (nameOrValue >= level.value) {
        return level;
      }
    }
    return Level.ALL;
  }