Module: Syslog::Macros
- Defined in:
- syslog.c
Class Method Summary collapse
Instance Method Summary collapse
- #LOG_MASK ⇒ Object
-
#LOG_UPTO(priority_level) ⇒ Object
Generates a mask value for priority levels at or below the level specified.
Class Method Details
.included(target) ⇒ Object
398 399 400 401 402 |
# File 'syslog.c', line 398 static VALUE mSyslogMacros_included(VALUE mod, VALUE target) { rb_extend_object(target, mSyslogMacros); return mod; } |
Instance Method Details
#LOG_MASK ⇒ Object
#LOG_UPTO(priority_level) ⇒ Object
Generates a mask value for priority levels at or below the level specified. See #mask=
393 394 395 396 |
# File 'syslog.c', line 393 static VALUE mSyslogMacros_LOG_UPTO(VALUE mod, VALUE pri) { return INT2FIX(LOG_UPTO(NUM2INT(pri))); } |