public void AddInfoLog(string title, string content)
        {
            string msg = "【" + title + "】" + content;

            LogsQueue.Enqueue(msg);
            string logMsg = String.Format("{{0}} {1}", Times.GetDateNow(), msg);
        }
Beispiel #2
0
 /// <summary>
 /// Add a log to the logging queue
 /// </summary>
 public void AddLog(LogEventArgs log)
 {
     LogsQueue.Enqueue(log);
     NotifyAddedLog.Release();
 }
 public void AddErrorLog(string title, Exception e)
 {
     LogsQueue.Enqueue("【" + title + "】" + e.Message);
 }
 public void AddInfoLog(string title)
 {
     LogsQueue.Enqueue("【" + title + "】");
 }