Пример #1
0
 /// <summary> 运行异常记录写入~/App_Data/RunExceptionLog.xml </summary>
 /// <param name="ex">异常信息</param>
 public static void Write(Exception ex)
 {
     var entity = new RunExceptionLogEntity
     {
         ex = ex,
         Message = ex.Message.Replace("\r\n", ""),
     };
     entity.Write();
 }
        /// <summary> 运行异常记录写入~/App_Data/RunExceptionLog.xml </summary>
        /// <param name="ex">异常信息</param>
        public static void Write(Exception ex)
        {
            var entity = new RunExceptionLogEntity
            {
                ex      = ex,
                Message = ex.Message.Replace("\r\n", ""),
            };

            entity.Write();
        }