2014年1月14日

log4net 配置使用

摘要: --> 调用代码1、using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using log4net;[assembly: log4net.Config.XmlConfigurator(Watch = true)]namespace yichangDEMO {class Log... 阅读全文

posted @ 2014-01-14 16:46 爱在屋檐下 阅读(228) 评论(0) 推荐(0)

窗体程序捕捉异常的通用简便方法不用到处添加try-catch

摘要: static class Program {/// /// 应用程序的主入口点。/// [STAThread]static void Main() {Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);A 阅读全文

posted @ 2014-01-14 10:08 爱在屋檐下 阅读(434) 评论(0) 推荐(0)

导航