Use INT as severity

INT is more comparable rather than string e.g. we can put if statement
concerned about severity ERROR or higher by TYPE >= ERROR. This is as
opposed to string where we need to use switch case.