private void Log_MessageAdded(object sender, Log.MessageAddedEventArgs e) { if (e.LogEntry.Severity <= Settings.Instance.MinimalSeverityToShowInLog) { this.InvokeIfRequired(_ => logWindow.Show()); } }
private void logMessageAdded(object sender, Log.MessageAddedEventArgs e) { if (e.LogEntry.Severity <= Settings.Instance.MinimalSeverityToShowInLog) { tbLog.InvokeIfRequired(x => x.AppendText($"{e.LogEntry.Time} [{e.LogEntry.Severity}] {e.LogEntry.Origin}: {e.LogEntry.Message}{Environment.NewLine}")); } }