天天看点

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

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