// Inside your logger constructor: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomainUnhandledException); // Then: private void AppDomainUnhandledException(Object sender, UnhandledExceptionEventArgs e) { // Log as unhandled exception: e.ExceptionObject.ToString() }
Xaqron
source share