예제 #1
0
        /// <summary>
        /// 记录出错日志到Debug目录下
        /// </summary>
        /// <param name="message"></param>
        /// <param name="args"></param>
        public static void ReleaseWriteDebug(string message, params object[] args)
        {
            string str = message;

            if (args.Length > 0)
            {
                str = string.Format("Trace>>" + message, args);
            }
            LogHelper.WriteDebug(str);
        }
예제 #2
0
        /// <summary>
        /// 只在编译器的DEBUG下输出到Debug目录
        /// </summary>
        /// <param name="message"></param>
        /// <param name="includStackTrace"></param>
        /// <param name="args"></param>
        public static void Write(string message, bool includStackTrace, params object[] args)
        {
            string str = message;

            if (args.Length > 0)
            {
                str = string.Format("Trace>>" + message, args);
            }
            if (includStackTrace)
            {
                LogHelper.WriteDebug(str + "\r\n" + GetStackTrace());
            }
            else
            {
                LogHelper.WriteDebug(str);
            }
        }
예제 #3
0
 /// <summary>
 /// 记录异常日志到Debug目录
 /// </summary>
 /// <param name="message"></param>
 public void SaveDebugLog(string message)
 {
     LogHelper.WriteDebug(string.Format("{0};消息:{1}", this.MFolderName, message));
 }