Example #1
0
        public void Log(LogMessage message)
        {
            LogStack.Push(message);
            _listener?.OnLog(message);

            if (message.Exception != null)
            {

            }
        }
Example #2
0
 /// <summary>
 /// add process line on log message received
 /// </summary>
 /// <param name="message"></param>
 public void OnLog(LogMessage message)
 {
     string text = "";
     switch (message.Type)
     {
         case LogType.ERROR:
             text = "Error:";
             break;
         case LogType.INFO:
             text = "Info:";
             break;
     }
     text += message.Message;
     AddLogLine(text);
 }