Use sysloger:severity_to_number/1.