Support for setting level by name and for failures on invalid levels