예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// 记录异常日志到Fatal目录
 /// </summary>
 /// <param name="message"></param>
 public void SaveFatalLog(string message)
 {
     LogHelper.WriteFatal(string.Format("{0};消息:{1}", this.MFolderName, message));
 }