Created logging.getLevelIdx(), rewrote getLevel, nextLevelDown, and nextLevelUp to use it, and corrected Logger#log to use it as well.