| | |
| | | // return;
|
| | | //}
|
| | | //Log文件
|
| | | System.IO.StreamWriter sw = null;
|
| | | try
|
| | | {
|
| | | string fileName = this.GetLogFile(div);
|
| | | string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.LogDirectory, fileName);
|
| | |
|
| | | strLog = "[" + DateTime.Now.ToString("yyyyMMdd HH:mm:ss") + "] " + strLog + "\r\n";
|
| | | var sw = new System.IO.StreamWriter(fullName, true, Encoding.UTF8);
|
| | | sw = new System.IO.StreamWriter(fullName, true, Encoding.UTF8);
|
| | | sw.WriteLine(strLog);
|
| | | sw.Close();
|
| | | }
|
| | | catch { }
|
| | | finally
|
| | | {
|
| | | sw?.Close();
|
| | | sw = null;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 获取LOG文件
|