Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • syslog/syslog.c

Class/Module Index [+]



Module holding Syslog constants. See Syslog.log and Syslog.open for constant descriptions.

Public Class Methods

LOG_MASK(priority_level) => priority_mask click to toggle source

Generates a mask bit for a priority level. See mask=

               static VALUE mSyslogConstants_LOG_MASK(VALUE klass, VALUE pri)
    return INT2FIX(LOG_MASK(NUM2INT(pri)));
LOG_UPTO(priority_level) => priority_mask click to toggle source

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

               static VALUE mSyslogConstants_LOG_UPTO(VALUE klass, VALUE pri)
    return INT2FIX(LOG_UPTO(NUM2INT(pri)));

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.