StringBuilder sb = new StringBuilder();
sb.AppendLine(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + " " + arg0 );
System.IO.File.AppendAllText(@"D:\File\Log\loginLog.txt", sb.ToString());
转载于:https://www.cnblogs.com/dreamzcy/p/5112230.html
StringBuilder sb = new StringBuilder();
sb.AppendLine(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + " " + arg0 );
System.IO.File.AppendAllText(@"D:\File\Log\loginLog.txt", sb.ToString());
转载于:https://www.cnblogs.com/dreamzcy/p/5112230.html