Monday, October 23, 2006

.Net Tracing Article from CoDe Magazine

CoDe Magazine - Instrumenting Applications with .NET Tracing

"Application instrumentation gives you the ability to perform runtime diagnosis of enterprise application state, which is critical to mission success. To help with instrumentation and logging, .NET ships with tracing types in the System.Diagnostics namespace. Using these types, you have the ability to log information to multiple output streams for diagnosis of application runtime behavior. Information produced by instrumentation and tracing types enable you to examine the runtime state of an application and fix problems that would be otherwise expensive and painful to solve.

For many small and medium sized programs, it isn't too difficult to find and fix bugs based on reproducible information from users. As applications increase in size and complexity, the ability to figure out what is causing a bug becomes more difficult. On larger enterprise systems you need a way to track what is happening to find out what is causing problems. You must instrument your application so you can turn on tracing that will reveal pertinent information about your program's behavior. ..."

I've known about .Net tracing for forever, but never really used it. But then again, I hadn't built any major .Net apps. (Ton's of utilities and such but few LOB critical apps...)

Well that's changing and I'm starting to build and roll out a number of major apps, so it's time I revisit tracing and trace listeners...

(via http://del.icio.us/siderevs/.net/)

2 comments:

  1. If you are serious about it, you should skip tracing altogether and jump to either log4net or enterprise library logging.

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...