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