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

            if (args.Length > 0)
            {
                str = string.Format("Trace>>" + message, args);
            }
            LogHelper.WriteWarn(str);
        }
Exemple #2
0
 /// <summary>
 /// 记录异常日志到Warn目录
 /// </summary>
 /// <param name="message"></param>
 public void SaveWarnLog(string message)
 {
     LogHelper.WriteWarn(string.Format("{0};消息:{1}", this.MFolderName, message));
 }