Thursday, January 17, 2008

Logging with log4net on ASP.NET v2.0

I've been wanting to use log4net for sometime, hearing on and off people using it for logging as well as its praises and popularity. But, just gonna find some time to check it out.

Downloaded from http://logging.apache.org/log4net/

Finally, I've decided to give it a kick and just want to make it work to log everything for my application.

Apparently, its sample files are based in .NET v1.0 and v1.1, rather than for v2.0, especially for the ASP.NET v2.0. So I had a hard time digging out how to do about it and of course, Google for it.

Fortunately, Phil Haack had done it a year back!

So here goes the link, all credits goes to Phil!

http://haacked.com/archive/2005/03/07/ConfiguringLog4NetForWebApplications.aspx

http://haacked.com/archive/2006/07/09/ConfiguringLog4NetWithASP.NET2.0InMediumTrust.aspx

Thanks Phil!

regards,
choongseng

I'm on the move! with Gizmo!


check it out at http://www.gizmoproject.com/

regards,
choongseng