C#把日志文件单独保存到目录文件夹下


System.IO.File.WriteAllText(HttpContext.Current.Server.MapPath("~") + @"ApiNlogEX.txt", ex.ToString());

 

转载请注明出处:http://www.runhoujixie.com/article/20230526/527353.html