// Put this at the top using System.IO; // public static void Log(string Message) { File.AppendAllText(HttpContext.Current.Server.MapPath("~") + "/log.txt", DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + ": " + Message + Environment.NewLine); }
You need to create an account or log in to post comments to this site.