/// <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)); }
public static void AddTextLog(string errmsg, string errinfo) { YSWL.Log.LogHelper.Error <OperationLog>(OperationLogHelper.GetOperationLog("", "", errmsg, DateTime.Now, errinfo), typeof(OperationLog)); }
/// <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)); }