Well, after some research I found the answer.
First I just need to subscribe using match prefix, then it will get every message matching the prefix, as supposed in the first email, then I set some name to details_arg argument in the SubscribeOptions, this way my callback function will receive an extra argument with that name containing a SubscribeOptions instance and one of its attributes is the topic.
Ex: yield self.subscribe(storeMessage, u’com.myapp’, options=SubscribeOptions(match=u’prefix’, details_arg=‘options’))
I think that’s enough to do what I want.
Em quarta-feira, 29 de julho de 2015 10:09:29 UTC-3, Johnny W. Santos escreveu:
There is any easy way to log every messages passing through the router? I want to make something like a “transactions history”. I could just create a component subscribed to every topic and log the message content, but how would I know the topic of that message to save it as well?
My goal is to create a queue as a messages buffer, then if a faulty component needs to process some messages it missed, then I could just make a dedicated queue with those messages.
Johnny W. Santos