Logging the traffic

Dec 29, 2013 at 8:27 PM
Edited Dec 29, 2013 at 8:27 PM
Hi,

Can you please help me on below:
In the source code, where do you think I can write a code to log all the traffic between the peers?

Basically, I want to monitor all the traffic over the network so that I can create some kind of reports out of it.

Thanks.
Regards,
Anant.