System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "/log" + DateTime.Now.ToString("yyyyMMdd") + "type2" + ".log",
DateTime.Now + " data : " + data + "\r\n");
System.IO.File.AppendAllText(AppDomain.CurrentDomain.BaseDirectory + "/log" + DateTime.Now.ToString("yyyyMMdd") + "type2" + ".log",
DateTime.Now + " data : " + data + "\r\n");
本文标题:C# 添加本地日志
本文链接:https://www.haomeiwen.com/subject/uxizektx.html
网友评论