Macaw's TraceInfo Web Part

Macaw was kind enough to donate his TraceInfo Web Part complete with source code.

Introducing the Macaw TraceInfo WebPart
What a pain it is to see your WebPart fail on a SharePoint production server where you cannot simply start Visual Studio and debug the failing code… In many cases, you don’t even have (physical) access to the server. If you used Trace statements in your WebPart, then you can configure trace listeners in SharePoint’s web.config and have the Trace output sent to the event log or file.

But life can be simpler than that: I am presenting a FREE SharePoint WebPart with full source code here that shows all the Tracing output in code that is executed during the Page Request without any configuration. It’s a great way to view tracing output at will without even having production server access to event log or log files… Just drag the Macaw TraceInfo WebPart onto the page and your Tracing output will show up! Well, ok, if you used Trace.Write() or Trace.WriteLine() statements in your code… This code can be even business logic code; as long it contains Trace statements, its output can be viewed by the TraceInfo WebPart.

Feature Summary

Automagically collects Trace output without web.config editing, just drag the WebPart on a page and it shows the Trace information.
Shows all Trace output from all code that runs during the request of the page.
Filtering Trace output by Trace Category name by entering a filter value on the TraceInfo toolpart.
WebPart is hidden from non-administrative users by default, but can be made visible to any user by de-selecting a checkbox on the TraceInfo toolpart.

You can download the Macaw TraceInfo Web Part here

You may also like...

I would love to hear from you.

%d bloggers like this: