setlogmask

setlogmask 

mask_priority

Sets log mask to mask_priority and returns the old mask.