记录详细错误信息

utils.ToLog.WriteLog(AboutConfig.LogPath, "\r\n方法:" + System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name + "[##本地##文件不存在]\r\n导致异常的应用程序或对象名称:" + ex.Source + "\r\n引发异常的方法:" + ex.TargetSite + "\r\n详细消息:" + ex.Message + "\r\n当前调用文件路径:" + filepath + "\r\n", 1);

 

posted @ 2014-07-03 16:47  Lyghost  阅读(173)  评论(0编辑  收藏  举报