Code Camp: Presentation Slides

Hopefully this presentation stirred some interest; especially in log4net. As promised here is the slide deck.


https://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)) everytime we declare a logger. The reflection penalty will be swallowed once in each class’ static constructor.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s