I have to develop a file that logs daily and inside of the log file it shows me a date and time of every log. I got sofar that I create a log file with this code :
Stream iStream = File.Open("C:\\TEST\\logfiles\\Test_Plugin.txt", FileMode.Append);
StreamWriter iWriter = new StreamWriter(iStream);
I do get a logfile but there is no date time the out put is just bunch of messages underneath each other. Also I would like to log these on daily basis. This plugin would run on the server. thanks