Actually I don't even need is to be a numerical value, so I can just define LogLevel's values to be the appropriate string.