/// <summary> /// /// </summary> /// <param name="message"></param> /// <param name="args"></param> public static void WriteFatal(string message, params object[] args) { string str = message; if (args.Length > 0) { str = string.Format("Trace>>" + message, args); } LogHelper.WriteFatal(str); }
/// <summary> /// 记录异常日志到Fatal目录 /// </summary> /// <param name="message"></param> public void SaveFatalLog(string message) { LogHelper.WriteFatal(string.Format("{0};消息:{1}", this.MFolderName, message)); }