diff --git a/LiamWorkflowDiagnostics/MainWindow.xaml b/LiamWorkflowDiagnostics/MainWindow.xaml
index 52da712..de63eda 100644
--- a/LiamWorkflowDiagnostics/MainWindow.xaml
+++ b/LiamWorkflowDiagnostics/MainWindow.xaml
@@ -479,6 +479,8 @@
diff --git a/LiamWorkflowDiagnostics/MainWindow.xaml.cs b/LiamWorkflowDiagnostics/MainWindow.xaml.cs
index 409cd55..88cf123 100644
--- a/LiamWorkflowDiagnostics/MainWindow.xaml.cs
+++ b/LiamWorkflowDiagnostics/MainWindow.xaml.cs
@@ -7,6 +7,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Input;
using System.IO;
using C4IT.LIAM;
using C4IT.Logging;
@@ -33,6 +34,7 @@ namespace LiamWorkflowDiagnostics
private readonly ObservableCollection _logEntries = new ObservableCollection();
private ProviderTestSession _session;
private bool _isInitializingUi;
+ private dynamic _diagnosticsLogger;
private readonly string _settingsPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "LiamWorkflowDiagnostics.settings.json");
public MainWindow()
@@ -65,7 +67,7 @@ namespace LiamWorkflowDiagnostics
var logDirectory = Path.Combine(baseDir, "logs");
Directory.CreateDirectory(logDirectory);
var logPath = Path.Combine(logDirectory, "LiamWorkflowDiagnostics.log");
- cLogManagerFile.CreateInstance(logPath);
+ _diagnosticsLogger = cLogManagerFile.CreateInstance(logPath);
cLogManager.Instance.Level = LogLevels.Debug;
AppendLog($"Logdatei: {logPath} (Level: Debug)");
}
@@ -137,7 +139,8 @@ namespace LiamWorkflowDiagnostics
try
{
- cLogManager.DefaultLogger?.LogEntry(level, message);
+ if (_diagnosticsLogger != null)
+ _diagnosticsLogger.LogEntry(level, message);
}
catch { /* ignore */ }
}
@@ -227,6 +230,35 @@ namespace LiamWorkflowDiagnostics
AppendLog("Log gelöscht.", LogLevels.Debug);
}
+ private void LogListBox_KeyDown(object sender, KeyEventArgs e)
+ {
+ if ((Keyboard.Modifiers & ModifierKeys.Control) != ModifierKeys.Control)
+ return;
+
+ if (e.Key == Key.A)
+ {
+ LogListBox.SelectAll();
+ e.Handled = true;
+ return;
+ }
+
+ if (e.Key != Key.C)
+ return;
+
+ var selectedLines = LogListBox.SelectedItems
+ .Cast