Encode the facility and priority. You can pass in strings or integers - if strings are passed, the facility_names and priority_names mapping dictionaries are used to convert them to integers.
logging.handlers/SysLogHandler.encodePriority
SysLogHandler.encodePriority