From 40b990c030c662ea00e779b601ef300404eeaccf Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:01:30 +0900 Subject: Logging functionality available for individual objects Signed-off-by: Martin Sustrik --- src/ctx.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ctx.cpp') diff --git a/src/ctx.cpp b/src/ctx.cpp index 437feed..97398ae 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -307,6 +307,13 @@ zmq::endpoint_t zmq::ctx_t::find_endpoint (const char *addr_) return *endpoint; } -// The last used socket ID, or 0 if no socket was used so far. +void zmq::ctx_t::log (int sid_, const char *text_) +{ + monitor->log (sid_, text_); +} + +// The last used socket ID, or 0 if no socket was used so far. Note that this +// is a global variable. Thus, even sockets created in different contexts have +// unique IDs. zmq::atomic_counter_t zmq::ctx_t::max_socket_id; -- cgit v1.2.3