Module: Syslog::Macros

Defined in:
syslog.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(target) ⇒ Object



399
400
401
402
403
# File 'syslog.c', line 399

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=



394
395
396
397
# File 'syslog.c', line 394

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