C# 添加本地日志
2020-09-14 本文已影响0人
飞天猪Pony
System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "/log" + DateTime.Now.ToString("yyyyMMdd") + "type2" + ".log",
DateTime.Now + " data : " + data + "\r\n");