diff --git a/Gdsi/Helper/LogHelper.cs b/Gdsi/Helper/LogHelper.cs index 25efe6e..4c1084e 100644 --- a/Gdsi/Helper/LogHelper.cs +++ b/Gdsi/Helper/LogHelper.cs @@ -20,13 +20,13 @@ namespace Gdsi.Helper /// 调用开始时间 public static void doJsonRequestLog(string method, string req, string resp, DateTime stime) { - string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Xml"; + string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Josn"; try { - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } + //if (!Directory.Exists(path)) + //{ + // Directory.CreateDirectory(path); + //} FileStream fs = new FileStream(path + "\\" + DateTime.Today.ToString("yyyyMMddHHmmss").Substring(0, 8).ToString() + ".txt", FileMode.Append, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("--------------------------------\r\n"); @@ -73,10 +73,10 @@ namespace Gdsi.Helper string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Error"; try { - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } + //if (!Directory.Exists(path)) + //{ + // Directory.CreateDirectory(path); + //} FileStream fs = new FileStream(path + "\\" + DateTime.Today.ToString("yyyyMMddHHmmss").Substring(0, 8).ToString() + ".txt", FileMode.Append, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("--------------------------------\r\n");