private void OnLogEvent(object sender, LogExtensions.LogEventArgs e)
 {
     if (e.Log.Equals(Logging.GetFileLogger()))
     {
         textBox1.AppendText($"[{DateTime.Now:T}] {e.Message}{Environment.NewLine}");
     }
 }
 private void OnLogEvent(object sender, LogExtensions.LogEventArgs e)
 {
     if (e.Log.Equals(Logging.GetFileLogger()))
     {
         _logEvents.Add(e.Event);
         lvLogs.Items.Refresh();
         lvLogs.SelectedItem = _logEvents.Last();
         lvLogs.ScrollIntoView(_logEvents.Last());
     }
 }