TraceInfo Web Part: a great utility for SharePoint Web Part developers

Friday, November 11, 2005 6:49 PM

[via Victor Vogelpoel [Macaw]]

Victor has come up with an way where you can use his debugging Web Part, which you can place on any Web Part page, and view all the trace output, all with zero-server touch! You could do this by maching a change to the web.config, but this way, you can upload Victor’s Web Part which contains a class that inherits TraceListener. The trick is to inject the listener object into the System.Diagnostics.Trace.Listeners collection in the OnInit event handler.

» Macaw TraceInfo WebPart, or how to view Trace output in a page using only a WebPart

comments powered by Disqus