syslog: use defined constants instead of raw numbers