2010年4月6日

web developer tips (83):通过反射从堆栈里获取调用的方法名称

摘要: 原文地址:You can get the name of the calling method from the stack using reflection 几乎每个程序都需要一个日志来记录事件、错误和异常。有时候,在记录的事件里的方法名是很有用的,最简单的做法就是写一个“方法”,这个“方法”使用两个参数:调用的方法名和事件 http://www.... 阅读全文

posted @ 2010-04-06 09:38 xjb 阅读(509) 评论(0) 推荐(0) 编辑

导航