Re: Logging function calls without changing code

2017-05-24 Thread Matt Wheeler
Hi Rajat, On Wed, 24 May 2017 at 20:05 Rajat Sharma wrote: > Is there a way to log all function calls of a class without changing > anything in that class. > Several... depending on what you want to achieve some may be more suited than others > What I mean to say is if I have written a class

Logging function calls without changing code

2017-05-24 Thread Rajat Sharma
Hi Everyone, Is there a way to log all function calls of a class without changing anything in that class. What I mean to say is if I have written a class previously and I want to enable logging in that then I would probably need to write the following before my function calls- logger.debug('