Module: Syslog::Macros

Defined in:
syslog.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(target) ⇒ Object



401
402
403
404
405
# File 'syslog.c', line 401

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=



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

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