开发者

What's a good checklist for instrumenting my .NET application

I'm looking for a best practices checklist for instrumenting my code. Not so muc开发者_JAVA技巧h 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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜