don't allow illegal values for log levels
well, at least it works, for the moment