shouldn't this be written to be more sentitive of sysliog facilities and severities? i owuld expect it more useful to change all EMERG's to ERROR's not have to reproduce the same logic for all different relevant facility numbers and without the visbility of the correct syslog names either...
a bit of bit twiddling never hurt anyone