Can anybody please tell me how to use the original source code of tor  by modifying and implementing on the TOR network?
For example: I want to log how many circuits have been made through my OR.

Thanks,

Saurav