Question

I'm looking for a best practices checklist for instrumenting my code. Not so much what tools to use (I'm a System.Diagnostics.Trace fan myself) but just where you should put tracing statements in a "typical" application.

If you have a tip (or tips) can you please provide them here. Maybe distinguish stuff that you absolutely must include versus things that could potentially save your bacon.

Was it helpful?

Solution

I recently saw a demo of PostSharp at a code camp, and it appears to make instrumenting your application almost effortless. If you can accept that it uses IL weaving to do its magic, it could save significant effort (and better yet, keep your code clean).

The presenter (Michael Hall) suggested using PostSharp.Laos for simplicity and to avoid licensing restrictions.

OTHER TIPS

This P&P article, Measuring .NET Application Performance, outlines aspects of an application that can be logged and measured regrading performance monitoring and analysis.

Other areas worth considering for instrumentation are security auditing, error and exception logging, and reportable application events - such as when someone places an order, or when a new user registers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top