Jon Box's Weblog

 


.NET Articles by the Atomic group

MSDN RDs









Subscribe to "Jon Box's Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Monday, June 28, 2004


During baseball season, life gets too busy.  And my extracurricular work activities slow way down.  Evidently, so does my blogging.  Here is a peek at my recent evangelism activities.

East TN .NET Users Group

4/15/2004

Univ. Of Memphis - Programming Challenge 2004

4/17/2004

MSDN Webcast: A Sneak Peek at Mobile Development with VS 2005 and ASP.NET v2.0

4/17/2004

What's New in the Compact Framework for Whidbey

4/20/2004

MSDN Webcast: Developing Applications Under Windows XP Service Pack 2

5/11/2004

TechEd Pavillion Shift in RD Booth

5/25/2004

TechEd Presentation: Windows XP SP2

5/28/2004

DevEssentials: Developing Application under Windows XP SP2

6/07/2004

DevEssentials: Building Solutions with the Compact Framework

6/07/2004

DevEssentials:  Supporting 265 Devices in One Code Base

6/07/2004

Presented at Little Rock .NET Users Group

6/10/2004

Presented at Birmingham DevDays

6/29/2004

I’m off to the airport to cover that last entry.


11:50:34 AM    comment []

Recently, I needed a logging block for a web project that I’m on.  I initially wrote some code to log errors to the Event Log but the client changed this to also want logging to a text file.

I initially checked out PAG’s Logging Application Block and found it feature set to be very rich.  It also takes a little extra effort and has some stuff that I don’t need.  Specifically, one has to install EIF as a pre-requirement.  That just seemed a little too much if I wanted some basic logging functionality.

After asking around, I was repeatedly pointed to Log4Net.  This free library has several benefits and is easy to use.  It works for any type of .NET application and runs on multiple .NET platforms (v1.0, v1.1, .NETCF, Mono, and SSCLI v1).  It also has a variety of logging targets, a nice programmatic interface, is very configurable, and comes with lots of documentation.  I admit that I feel strange recommending a different solution when Microsoft has one, but check out this comparison between EIF and log4net.  Here is a couple of features that I like:

·        Multiple loggers active

·        Configurable, even at runtime

·        A plethora of logging targets – and some are specific to ASP.NET

·        Logger hierarchy

Here is a good article that helped me get started.  And if you’re doing ASP.NET, do not forget to add the log4net attribute to Global.ASAX.

 

 


11:36:36 AM    comment []


Click here to visit the Radio UserLand website. © Copyright 2004 Jon Box.
Last update: 9/1/2004; 12:12:05 AM.

June 2004
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
May   Jul