From 71f1df7772feec5cf83feefa851608adac18e005 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 06 十一月 2019 17:45:23 +0800
Subject: [PATCH] 2019.11.6
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlLogLogic.cs | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlLogLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlLogLogic.cs
index 3f2e723..eba7f4b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlLogLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlLogLogic.cs
@@ -42,6 +42,18 @@
/// <summary>
/// Log鍑哄姏
/// </summary>
+ /// <param name="ex"></param>
+ public void WriteLog(Exception ex)
+ {
+ //Log鍑哄姏
+ string msg = ex.Message + "\r\n";
+ msg += ex.StackTrace;
+ this.WriteLog(-1, msg);
+ }
+
+ /// <summary>
+ /// Log鍑哄姏
+ /// </summary>
/// <param name="div">1:鏅�歀og,-1:鑷村懡閿欒Log</param>
/// <param name="strLog">Log鍐呭</param>
public void WriteLog(int div, string strLog)
@@ -57,8 +69,7 @@
string fileName = this.GetLogFile(div);
string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.LogDirectory, fileName);
- strLog = "[" + DateTime.Now.ToString("yyyyMMdd HH:mm:ss") + "] " + strLog;
- strLog = UserCenterLogic.EncryptPassword("1|Oli]7p", strLog);
+ strLog = "[" + DateTime.Now.ToString("yyyyMMdd HH:mm:ss") + "] " + strLog + "\r\n";
var sw = new System.IO.StreamWriter(fullName, true, Encoding.UTF8);
sw.WriteLine(strLog);
sw.Close();
--
Gitblit v1.8.0