Пример #1
0
 /// <summary>
 /// Log Exception Into Database Table And Local Log File
 /// </summary>
 /// <param name="Logger"></param>
 /// <param name="Ex"></param>
 /// <param name="ExceptionLevel"></param>
 /// <param name="UserIn"></param>
 public static void LogException(log4net.ILog Logger, Exception Ex, ExceptionLevelEnum ExceptionLevel, int UserIn)
 {
     aspException.Insert(DataManager.defaultInstance.ServerDateTime, Environment.UserName, Ex.Message, Ex.StackTrace, Logger.Logger.Name, ExceptionLevel.ToString(), UserIn);
     Logger.Error(Ex.Message, Ex);
 }
Пример #2
0
 /// <summary>
 /// Log Exception Into Database Table And Local Log File
 /// </summary>
 /// <param name="Logger"></param>
 /// <param name="Ex"></param>
 /// <param name="ExceptionLevel"></param>
 /// <param name="UserIn"></param>
 public static void LogException(log4net.ILog Logger, Exception Ex, ExceptionLevelEnum ExceptionLevel, int UserIn)
 {
     //aspException.Insert(DataManager.defaultInstance.ServerDateTime, Environment.UserName, Ex.Message, Ex.StackTrace, Logger.Logger.Name, ExceptionLevel.ToString(), UserIn);
     Logger.Error(Ex.Message, Ex);
 }