Check if the current error reporting includes an error level
errorreporting::includes($level, $current = null)