|
|
|
@ -20,13 +20,13 @@ namespace Gdsi.Helper |
|
|
|
|
/// <param name="resp">调用开始时间</param> |
|
|
|
|
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"); |
|
|
|
|