Module
Class Methods
::
ext/syslog/syslog.c
View on GitHub
static VALUE mSyslogMacros_included(VALUE mod, VALUE target)
{
rb_extend_object(target, mSyslogMacros);
return mod;
}
No documentation available
Instance Methods
ext/syslog/syslog.c
View on GitHub
static VALUE mSyslogMacros_LOG_MASK(VALUE mod, VALUE pri)
{
return INT2FIX(LOG_MASK(NUM2INT(pri)));
}
Generates a mask bit for a priority level. See mask=
ext/syslog/syslog.c
View on GitHub
static VALUE mSyslogMacros_LOG_UPTO(VALUE mod, VALUE pri)
{
return INT2FIX(LOG_UPTO(NUM2INT(pri)));
}
Generates a mask value for priority levels at or below the level specified. See mask=