public static void WriteLog(string message) { TextLog.Error("error", message); //using (FileStream fs = new FileStream(HttpContext.Current.Server.MapPath("~/log.log"), FileMode.Append, FileAccess.Write)) //{ // using (StreamWriter sw = new StreamWriter(fs, Encoding.UTF8)) // { // sw.WriteLine(DateTime.Now.ToString() + ":" + message); // sw.Close(); // } // fs.Close(); //} }