miércoles, 17 de agosto de 2011

Log file for application in C#

StreamWriter log;
log = File.AppendText(@"app.log");
log.WriteLine(System.DateTime.Now.ToString() + " Read DB Data.");
log.Close();