Skip to content

Commit

Permalink
Update code log
Browse files Browse the repository at this point in the history
  • Loading branch information
PHONGNV-D0\phongnv committed May 23, 2018
1 parent 247993a commit 0c83953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ServerSite/Ss.Core/LogHelper/LogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public static void LogDebug(object obj)
// Write and flush.
Debug.Write(DateTime.Now.ToString("yyyy-MM-ddTHH:mm:sszzz"));
Debug.Indent();
Debug.WriteLine(" Methold Name :" + stackTrace.GetFrame(1).GetMethod().Name + " ===> " + obj);
Debug.WriteLine(string.Format("[Methold Name: {0} ] ===> {1}", stackTrace.GetFrame(1).GetMethod().Name, obj.ToString()));
Debug.Unindent();
Debug.Flush();

// listening
if (!string.IsNullOrEmpty(obj.ToString()) && ListeningLogDebug != null)
{
ListeningLogDebug(string.Format(DateTime.Now.ToString("yyyy-MM-ddTHH:mm:sszzz") + stackTrace.GetFrame(1) + " ===> " + obj.ToString()));
ListeningLogDebug(string.Format(DateTime.Now.ToString("yyyy-MM-ddTHH:mm:sszzz") + string.Format("[Methold Name: {0} ] ===> {1}", stackTrace.GetFrame(1).GetMethod().Name, obj.ToString()) ));
}

}
Expand Down

0 comments on commit 0c83953

Please sign in to comment.