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