2013-11-27 11:37:44
string LocalPath = Application.StartupPath + @"\" + "(" + DateTime.Now.ToString("yyyy-MM-dd") + ")App.Run.Log.txt";
using (StreamWriter sw = File.AppendText(LocalPath))
{
sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 代码执行轨迹-->执行SQL语句" + strsql);
}