internal void LogNullError(string nullObjectName, [CallerMemberName] string previousMethodName = null) { if (string.IsNullOrEmpty(nullObjectName)) { return; } LogGenericError(nullObjectName + " is null!", previousMethodName); }
private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args) { if (args?.ExceptionObject == null) { ArchiLogger.LogNullError(nameof(args) + " || " + nameof(args.ExceptionObject)); return; } ArchiLogger.LogFatalException((Exception)args.ExceptionObject); }