Atlanta ASP.Net MVC Developer/ Architect
Code Camp: Presentation Slides
Hopefully this presentation stirred some interest; especially in log4net. As promised here is the slide deck.
http://dotnetworkaholic.com/csharp/downloads/CodeCamp2005.ppt
Also here is the log4net cut-’and-paste everywhere’ line:
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
For those not at the presentation that line of code uses reflection to determine the Class’s type instead of us modifying GetLogger(typeof (YourClass)) every time we declare a logger. The reflection penalty will be swallowed once in each class’ static constructor.
| Print article | This entry was posted by Paul Lockwood on May 14, 2005 at 4:52 am, and is filed under Other. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |