xively / mosquitto

Ruby binding against libmosquitto (http://mosquitto.org/) - a high performance MQTT protocol (http://mqtt.org) client
Other
58 stars 15 forks source link

Expose a Ruby logging interface to libmosquitto's logger callback #1

Closed methodmissing closed 10 years ago

methodmissing commented 10 years ago

libmosquitto callback : http://mosquitto.org/api/files/mosquitto-h.html#mosquitto_log_callback_set

Ruby contract : http://www.ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html#method-i-3C-3C

methodmissing commented 10 years ago

The Ruby contract supports most Logger implementations, including SyslogLogger

methodmissing commented 10 years ago

Handled in https://github.com/bear-metal/mosquitto/commit/afbc329a1c4b29d379c9bbd81bd6f9526b01eb1c