Monday, March 3, 2008

Log4Net in VS2005 Web Application

Here's a link to a blog post on setting up log4net in a Visual Studio 2005 web application.

The real trick to this is to make sure that there is a global.asax file in the applciation and to add the following line to the Application_Start method


log4net.Config.XmlConfigurator.Configure();


The rest of the configuration is pretty straight forward.

2 comments:

Emanuele said...

Thank you for post my article!!!

:)

JB said...

Hey, I always try to give credit where credit is due. Keep up the good work.