public void LogCritical(string data, string source) { if (ignoredMessages.Any(data.Contains)) { return; } ContentChanged = true; messages.Add(new AnalogyLogMessage(data, AnalogyLogLevel.Critical, AnalogyLogClass.General, source)); OnNewError?.Invoke(this, new EventArgs()); }
public void LogErrorMessage(AnalogyLogMessage error) { if (ignoredMessages.Any(error.Text.Contains)) { return; } ContentChanged = true; messages.Add(error); OnNewError?.Invoke(this, new EventArgs()); }
public void LogErrorMessage(AnalogyLogMessage error) { messages.Add(error); OnNewError?.Invoke(this, new EventArgs()); }
public void LogError(string error) { messages.Add(new AnalogyLogMessage(error, AnalogyLogLevel.Error, AnalogyLogClass.General, "Analogy")); OnNewError?.Invoke(this, new EventArgs()); }
private static void OnNewErrorEvent(ErrorEnumArgs e) { OnNewError?.Invoke(e); }