Esempio n. 1
0
 private void Log_MessageAdded(object sender, Log.MessageAddedEventArgs e)
 {
     if (e.LogEntry.Severity <= Settings.Instance.MinimalSeverityToShowInLog)
     {
         this.InvokeIfRequired(_ => logWindow.Show());
     }
 }
Esempio n. 2
0
 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}"));
     }
 }