public MainWindow() { this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing); InitializeComponent(); _networkLogs = new NetworkLogger(this.Dispatcher); _networkLogs.SessionStart += new NetworkLoggerSessionUpdatedHandler(network_NetworkSessionStart); _networkLogs.SessionEnd += new NetworkLoggerSessionUpdatedHandler(network_NetworkSessionEnd); _networkLogs.Initialize(); _pluginLogs = new PluginLogger(this.Dispatcher); _pluginLogs.ActiveLogChanged += new PluginLoggerActiveLogChangedHandler(_pluginLogs_ActiveLogChanged); _pluginLogs.Initialize(); }
private void InitializeLogger() { LogDirPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs"); Directory.CreateDirectory(LogDirPath); PluginLogger.Initialize(LogDirPath, LogFileName); }