Monitor the system execution flow using Log or WCF
I am thinking about kind of system which keep provide us information about what is processing and what is the execution flow method to method as well as useful values. This kind of tool will be useful to track the execution of system, analyze the system that whether it is performing as per expected flow and also will be helpful to improve the logic.
I am also thinking that the UI should be graphical and should give better idea about flow in first look.
There are two ways:
- Using log file: this is normal practice, each application stores the log and trace file to find out above information. But this does not provide real time information and even if we enable to see the log file while another system is writing into the file, I think the main system may go slow. Therefore I am thinking about 2nd approach.
- Using WCF: in this, the main system will send a message to the tool. This will be real time but I need to check the performance, and also need to compare with Log file performance (basically difference between I/O and the socket.


Today, i created two test applications to compare the performance between File Write and WCF write. here is the result i found:
To Write 100000 message:
Write into file:
Start time: 20:46:14.213
End time : 20:46:14.338
Send message to the WCF client:
Start time: 20:47:36.698
End time : 20:48:00.260
Its a big difference.
(WCF: it was dupex WCF service.)