Module: Syslog::Macros

Defined in:
syslog.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(target) ⇒ Object



396
397
398
399
400
# File 'syslog.c', line 396

static VALUE mSyslogMacros_included(VALUE mod, VALUE target)
{
    rb_extend_object(target, mSyslogMacros);
    return mod;
}

Instance Method Details

#LOG_MASKObject

Syslog macros

#LOG_UPTO(priority_level) ⇒ Object

Generates a mask value for priority levels at or below the level specified. See #mask=



391
392
393
394
# File 'syslog.c', line 391

static VALUE mSyslogMacros_LOG_UPTO(VALUE mod, VALUE pri)
{
    return INT2FIX(LOG_UPTO(NUM2INT(pri)));
}