setlogmask - set log priority mask
#include <syslog.h> int setlogmask(int maskpri);
Refer to closelog().