public void Log(LogMessage message) { LogStack.Push(message); _listener?.OnLog(message); if (message.Exception != null) { } }
/// <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); }