I have a really modular application in which modules interact with each other for many, many tasks. Lately I have been making some changes to fix some bugs and some processes are now taking longer (not making the application unusable though).
I now want to log the times it takes to perform each action, also taking into account interactions with other objects, to identify where is it taking long. This logging code would most likely be temporary. So, the question is:
How can I write all these actions’s latencies (or timeStarted and TimeEnded perhaps) to a single file from all the objects?
You would be best using a profiling tool such as Redgate’s ANTS Profiler (they do a 14 day trial).
If you need a logging framework you cannot go wrong with log4net.