Logging and Tracing
[Applies to: Microsoft Dynamics CRM 4.0]
Unhandled exception messages from plug-ins and workflows are written by the Microsoft Dynamics CRM platform to the Application Event Log on the server that executes the plug-in or workflow. In the case of an asynchronous plug-in or workflow, the event log on the server that is running the Microsoft Dynamics CRM asynchronous service is written to. The event log can be viewed by using the Event Viewer administrative tool that is included with the Microsoft Windows operating system.
Your applications, plug-ins, or custom workflow activities can also use the event log to record run-time information, warnings, or errors that you may not want to present in a dialog to the user or that you want to keep a record of.
For more information about writing to the event log, see the System.Diagnostics.EventLog class documentation in the MSDN library at http://msdn2.microsoft.com/en-us/library/34xfdz6a(VS.80).aspx.
Tracing can be enabled on the Microsoft Dynamics CRM for Outlook with Offline Access for debugging. For information about the event viewer and platform tracing, see the Maintaining and Operating Guide, which is part of the Microsoft Dynamics CRM 4.0 Implementation Guide document set, located at http://go.microsoft.com/fwlink/?LinkID=98045.
© 2010 Microsoft Corporation. All rights reserved.