I am trying to write a framework that would print certain log statements including class name and method name while that method is called on an object of that class. I want to do this without the need to modify the actual method. For instance, say there is a method -(void)sendButtonClicked
, when control reaches this method the framework intercept and print the class and method name on console.
This is something like Method Swizzling.
Any clue?