moved unhandled exception logging to log manager.

This commit is contained in:
Shreyas Zare
2019-01-14 11:11:51 +05:30
parent 8be08448a0
commit cfc1b57ee4
2 changed files with 5 additions and 5 deletions

View File

@@ -46,6 +46,11 @@ namespace DnsServerCore
_logFolder = logFolder;
StartNewLog();
AppDomain.CurrentDomain.UnhandledException += delegate (object sender, UnhandledExceptionEventArgs e)
{
Write((Exception)e.ExceptionObject);
};
}
#endregion