Composite.GlobalInitializerFacade.EnabledUnhandledExceptionsLogging C# (CSharp) Метод

EnabledUnhandledExceptionsLogging() приватный статический Метод

private static EnabledUnhandledExceptionsLogging ( ) : void
Результат void
        private static void EnabledUnhandledExceptionsLogging()
        {
            if (_unhandledExceptionLoggingInitialized) return;

            AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
            {
                var ex = (Exception)args.ExceptionObject;

                Log.LogCritical("Unhandled exception", ex);

                LogManager.Flush();
            };

            _unhandledExceptionLoggingInitialized = true;
        }