how to create log files by c# code. Suppose we have windows XP and our application requirement is to create system_idle logfile for performance check of the system.
and at last i will check performance in the application.
I do not want deployment log like thing.. Since, i want to get system performance details, I would like the performance logger to write the log file by applying counters. If the log file is available, i will read that information into my application. So, in this scenario i have to programmatically configure the performance logger, so that it produces a log file of the system performance. I could manually configure the logger using counters and objects but I want to do it programmatically. How can I do this?