The Design-Time Developer

Tracing with style in your web applications

I was reviewing some articles on tracing in ASP.NET, one of the topics we are discussing as part of our Winter MSDN Events, and found this cool article from Dino Esposito. The techniques he demonstrates will improve the rendering of trace data in your applications and give you a greater insight into how HTTP responses are produced in ASP.NET.

Enjoy,
Jacob

Published Tuesday, January 04, 2005 10:22 PM by jacobcy
Filed under:

Comments

 

Uwe Keim said:

For me, LOG4NET (http://logging.apache.org) is still superior compared to all other logging techniques/packages I'm aware of.
January 4, 2005 10:33 PM
 

Jacob said:

Uwe,

I must admit that I don't have experience with Log4Net, but I'll check it out. Have you tried the Logging Application Block from the Patterns and Practices team at Microsoft? It's a free building block of code that you can freely use in your applications to create robust, instrumented applications - http://msdn.microsoft.com/library/en-us/dnpag/html/Logging.asp

Regards,
Jacob
January 4, 2005 10:46 PM
 

Uwe Keim said:

Jacob, I think I looked at it before, yes. Seems to be similar. Log4Net seems to have more appenders (i.e. more "event sinks"), and they have a version (Log4Cxx) that I also can use from within C++.

Oh, and it works with Mono, too :-)
January 5, 2005 2:46 AM
 

Yavuz Bogazci's Blog said:

January 5, 2005 5:18 AM
 

Yavuz Bogazci's Blog said:

January 5, 2005 5:23 AM
 

Tom Gilkison said:

If you are going to check out log4net and use it in an ASP.NET application, read my log4net tutorial to save yourself some time!

log4net Tutorial: Using log4net in an ASP.NET Application
http://tom.gilki.org/programming/net/120604/

Here are 2 lines of code that may come in handy for your methods:

log4net.Config.DOMConfigurator.Configure(new System.IO.FileInfo(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) );
log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Cheers!
January 12, 2005 2:33 AM
New Comments to this post are disabled

This Blog

Syndication

News

This is the blog of Jacob Cynamon, Microsoft developer community champion (DCC) for Illinois, Indiana, and Wisconsin.


All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Developer Events

Other Microsoft Events TechNet Briefings
[IT Pros]


Connections
[Small/Mid-Sized Business Owners]


TS2 Seminars
[MS Partners]


MBS
[Business Professionals]


Stay up-to-date on developer happenings
Localized MSDN Flash Newsletter

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker