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