Major upgrade

This commit is contained in:
Duc committed 2025-10-24 15:18:11 -07:00
1 parent fd85735c93
commit ce583d1664
478 files changed
+237518 -47610

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnitTests
{
public class Util
{
public static void LogException(Exception ex, ILogger logger)
{
string errorMsg = ex.Message;
string stackTrace = ex.StackTrace;
Exception innerEx = ex.InnerException;
while (innerEx != null)
{
errorMsg = innerEx.Message;
stackTrace = innerEx.StackTrace + "\r\n" + stackTrace;
innerEx = innerEx.InnerException;
}
logger.Error(errorMsg + "\r\n" + stackTrace);
}
}
}