mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-04 15:55:32 +00:00
moved unhandled exception logging to log manager.
This commit is contained in:
@@ -46,6 +46,11 @@ namespace DnsServerCore
|
||||
_logFolder = logFolder;
|
||||
|
||||
StartNewLog();
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += delegate (object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
Write((Exception)e.ExceptionObject);
|
||||
};
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user