static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e) { SourceLogLogger.Log(e.ExceptionObject); }
private void ApplicationExit(object sender, ExitEventArgs e) { SourceLogLogger.LogInformation("Application closing..."); }
public App() { AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException; SourceLogLogger.LogInformation($"Application starting.. (version: {Assembly.GetExecutingAssembly().GetName().Version})"); }