Log4Net

by Erik Lane 16. May 2005 23:20

Oh the fun of log4net.  Do any Google'ing and you'll find some frustration and some positive....maybe by the same people.  I guess it's my turn now.  I've started down the journey of a logging solution for our team's web projects.  A fellow  developer had spent some time on a solution that was very cool and could do a lot of things but for some reason we are not going down that path.  I'm not sure why to be honest.  Either way we've started looking again and since Plumtree already uses log4net that is our first option.

Here are my sources of reference right now:
http://www.ondotnet.com/pub/a/dotnet/2003/06/16/log4net.html
http://weblogs.asp.net/nleghari/articles/easylog.aspx
http://davidhayden.com/blog/dave/archive/2005/03/24/885.aspx
http://logging.apache.org/log4net
http://weblogs.asp.net/dr.netjes/archive/2005/02/16/374780.aspx
http://jemos.com/blog/archive/2004/03/30/168.aspx

I'm finding out that Plumtree is using an older version and there is a newer one out 1.2.9.0 that I've been messing with.  Hrm..I hope that doesn't end up being an issue.  We shall see.  If you've had some good (or bad) experience with log4net and willing to give a pointer or two please do.  :-)

Tags:

Comments

Matt
Matt on 7/13/2005 2:12:00 AM

Hope you threw it out in the end. I'm forced to work with with it here and it's most endearing qualities include being a pain to configure and silently failing with no diagnostic information if it can't start for any reason. These reasons can include mild syntax errors in the config, permission problems, and they happen often in my experience.

It's all very comprehensive on the plus side but rotating a text file, writing to a database or sending an email aren't really the hardest tasks in .net.

eriklane
eriklane United States on 7/13/2005 2:37:00 AM

Thanks for the comment Matt. I agree it is a total pain to configure AND not know why the heck it's not working.

With that being said, once I did get it figured out (for what I needed anyway) and setup a wrapper for it, I really like it. It may not be that I like log4net that much but that I now have the logging that I needed. *shrug*

I'm thinking I should post on my ventures and what I ened up doing.

Comments are closed