Add getLevelsForSeverity to get a error_reporting bitmask for a particular severity