Tracing Feature - Wrapping

The NT Event Log "Wrapping" feature is really handy - it would be great if the Trace log had that.

Right now, it fills up with 10 entries and just stops. Yeah, you can change the number of entries, but it would be cool if you could tell it to just keep the last 10 entries.

 Handy Tracing Utility

There are three features I wish ASP.NET tracing had out of the box:

  • Check for a null context and gracefully disable if context is null (e.g. at design time)
  • If I don't specify a category, default to the name of the method in which the trace is being called.
  • Automatically compile out of production code via the Conditional("DEBUG") attribute or something similar.  Today, Trace routines carry overhead even when tracing is turned off.

4 Comments

Comments have been disabled for this content.