When you don’t want to bother with logging classes, etc. :
using (var w = System.IO.File.AppendText(@"logfilepath")) { w.WriteLine("formatstring", formatparameters...); }
Clive's YABB: lessons learned and promptly forgotten from the wonderful world of programming
lessons learned and promptly forgotten from the wonderful world of programming