Method: ZMQ.log

Defined in:
ext/rbczmq/rbczmq_ext.c

.log("msg") ⇒ nil

Logs a timestamped message to stdout.

Examples

ZMQ.log("msg")    =>  nil # 11-12-06 21:20:55 msg

Returns:

  • (nil)


113
114
115
116
117
118
# File 'ext/rbczmq/rbczmq_ext.c', line 113

static VALUE rb_czmq_m_log(ZMQ_UNUSED VALUE obj, VALUE msg)
{
    Check_Type(msg, T_STRING);
    zclock_log(StringValueCStr(msg));
    return Qnil;
}