[zeromq-dev] logging messages sent

andrea crotti andrea.crotti.0 at gmail.com
Mon Oct 1 15:12:24 CEST 2012


2012/10/1 andrea crotti <andrea.crotti.0 at gmail.com>:
> We are not sending around so much data, and for debugging and
> understanding purposes I would like to be able to automatically log to
> disk all the messages that would be sent around.
>
> Ideally writing :
>
> sock.send('some message')
>
> I should get a log entry
>
> "DEBUG: sent on channel tcp:/... message ..."
>
> Is there a way to get this behaviour easily?
> I thought that I can just wrap ZMQ instead and import from that when I
> want the debug, but I don't want to wrap all the possible types and
> send/receive functions if possible..
>
> Any idea?


An obvious solution is of course to do a log for every send/recv,
adding it manually, if there are no easy ways to wrap adding this
feature it might be the way to go..



More information about the zeromq-dev mailing list