Module: Syslog::Macros

Defined in:
syslog.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.includedObject


404
405
406
407
408
# File 'syslog.c', line 404

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=


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

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