Code Camp: Presentation Slides

Posted: May 14, 2005 in Other

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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s