private void LogMessageReceived(LogMessage logMessage) { App.Current.Dispatcher.BeginInvoke(new Action(() => { AllLogMessages.Add(logMessage); if (logMessage.Type.HasFlag(SelectedLogType)) { SelectedLogMessages.Add(logMessage); } })); LogManager.AppendToLog(logMessage); }
public static void AppendToLog(LogMessage message) { AppendToLog(message.ToString()); }