Reputation: 3569
Whenever any function invocation happens in PHP, I want to log the function name, its arguments and time of invocation. Is there any means to achieve this. I have a function to log, how to set this function to execute each time any function invocation happens?
Upvotes: 6
Views: 478
Reputation:
The best way you can do this is to call the log recording function from each of the other functions. Or else you can use a profiler as said by Adam
Upvotes: 0