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