예제 #1
0
파일: LogHelper.cs 프로젝트: dmhai/ColoPay
 /// <summary>
 /// 添加默认的严重错误日志方式
 /// </summary>
 /// <param name="operaInfo"></param>
 /// <param name="excepInfo"></param>
 /// <param name="usernName"></param>
 /// <param name="userId"></param>
 public static void AddFatalLog(string operaInfo, string excepInfo, string usernName = "", string userId = "")
 {
     YSWL.Log.LogHelper.Fatal <OperationLog>(OperationLogHelper.GetOperationLog(usernName, userId, operaInfo, DateTime.Now, excepInfo), typeof(OperationLog));
 }
예제 #2
0
파일: LogHelper.cs 프로젝트: dmhai/ColoPay
 public static void AddTextLog(string errmsg, string errinfo)
 {
     YSWL.Log.LogHelper.Error <OperationLog>(OperationLogHelper.GetOperationLog("", "", errmsg, DateTime.Now, errinfo), typeof(OperationLog));
 }
예제 #3
0
 /// <summary>
 /// 记录其他异常日志
 /// </summary>
 /// <param name="title"></param>
 /// <param name="msg"></param>
 /// <param name="operatorName"></param>
 public static void Fatal(string title, string msg, string operatorName)
 {
     LogHelper.Fatal <OperationLog>(OperationLogHelper.GetOperationLog(msg, title, operatorName), typeof(OperationLog));
 }