diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:01:30 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:01:30 +0900 |
commit | 40b990c030c662ea00e779b601ef300404eeaccf (patch) | |
tree | 5d83ac2fee902c0daf36415a55a230bf703ed5d7 /src/ctx.cpp | |
parent | 4c9cc8a724dfee204fb7a42632c1cc802e6aa83f (diff) |
Logging functionality available for individual objects
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ctx.cpp')
-rw-r--r-- | src/ctx.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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; |