mask()
Returns the log priority mask in effect. The mask is not reset by opening or closing syslog.
static VALUE mSyslog_get_mask(VALUE self) { return syslog_opened ? INT2NUM(syslog_mask) : Qnil; }