Posts

Showing posts from August, 2010

Using ReSharper with Log4Net

Image
Blogging this to remind myself of certain steps, now that I’ve got it set up on a new project, and to share the love.  This is a great tip that I learned from Chris O’Brien when I worked with him on a project in 2009 at Parity Solutions (thanks again Chris!).  It takes a bit of setup, and there is a licensing cost for Resharper , but it’s a brilliant time saver for .Net developers.  The idea has several aspects, as follows:  a) logging is a critical part of any application, but entering the lines of logging code is tedious and repetetive; b) Log4Net is a good standardized way of implementing a logging infrastructure; and c) using Resharper in conjunction with Log4Net eliminates a lot of the tedium.  It’s like “code snippets on steroids.” Setting up Log4Net The goal here is to get the Log4Net.DLL referenced in your Visual Studio project.  Go to Log4Net and download.  There is lots of information about Log4Net on the web; use your favorite search engine to learn more (I don’t cla