The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Code of the Month - log4net

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
Code of the Month - log4net Posted: Aug 3, 2004 11:01 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: Code of the Month - log4net
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

This Month’s Code – log4net!

log4net is a tool to help you output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime. The developers have kept the framework as similar to the original log4j as possible while taking advantage of new features in the .NET runtime.

There are a few interesting things about log4net worth looking at. One is its support for different framework versions across various platforms. The currently supported list is:

  • Microsoft .Net Framework 1.0 (1.0.3705)
  • Microsoft .Net Framework 1.1 (1.1.4322)
  • Microsoft .Net Compact Framework 1.0 (1.0.5000)
  • Mono 0.25 or higher
  • Microsoft Shared Source CLI 1.0

Impressive! Another interesting feature to me is the hierarchical logging architecture which is controllable at runtime. You can get as fine-grained as you want, to the point of being able to turn logging on or off and specify a particular output target for a single class! There are 13 logging targets provided, and log4net is architected for extension, not to mention the ability to customize logging output format! Perhaps most important of all, log4net is exhaustively documented.

One question that comes to mind is how this compares to the Enterprise Instrumentation Framework that Microsoft has put out. Fortunately Daniel Cazzulino has an interesting EIF vs. log4net comparison on his blog.

Look for more to come about log4net as we explore the code this month!

As a refresher, the following is reproduced from last month’s Code of the Month post…

What is the Code of the Month?

The basic idea of the code of the month is to highlight an open source software program. Download it, use it, and read the code. If you’re motivated enough, write an extension to it or fix a bug or two, but the key is to get in there and read the code. Here are a few tips for reading code.

If you blog and want to share your thoughts on the code, just link back to this post. Then everyone can read through your perspective on the code. If you don’t blog or don’t want to write anything up, that’s fine too.

The Benefits

  • Practice reading other people’s code (unless I’m highlighting your program)
  • Exposure to different ways of programming
  • Improvements to your own code!

This Blog Hosted On: http://www.DotNetJunkies.com/

Read: Code of the Month - log4net

Topic: Sweet Revenge: Sri Lanka takes the Cup Previous Topic   Next Topic Topic: Go Ricky Go!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use