Add support for passing severity directly as an int

Removes the extra indirection, if someone doesn't want it.