Skip to content

Commit

Permalink
日志记录增加版本号:方便知道使用者的版本。
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed Jul 12, 2016
1 parent 46d38ac commit 91a2733
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Action/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal static void WriteLog(string message)
}
internal static void WriteLog(bool isWriteLog, string message)
{
if (isWriteLog || AppConfig.Log.IsWriteLog)
if (isWriteLog || AppConfig.Log.IsWriteLog)
{
if (message.Contains(":OpenCon()"))//数据库链接异常不再写数据库(因为很多情况都指向同一个库)
{
Expand Down Expand Up @@ -216,7 +216,8 @@ public static void WriteLogToTxt(string message, string logType)
}
string pageUrl = Log.Url;
string filePath = folder + todayKey;
pageUrl += "\r\n------------------------\r\nRecord On : " + DateTime.Now.ToString() + " " + pageUrl;
pageUrl += "\r\n-----------V" + AppConfig.Version + "-------------\r\n";
pageUrl += "Record On : " + DateTime.Now.ToString() + " " + pageUrl;
message = pageUrl + "\r\n" + message;
IOHelper.Save(filePath, message, true, false);

Expand Down

0 comments on commit 91a2733

Please sign in to comment.