Use tracing in Dynamics CRM plugin for debugging purposes.
(ITracingService)serviceProvider.GetService(
typeof
(ITracingService));
tracingService.Trace(
"Plugin Message"
+
context.MessageName.ToUpper());
After the Spring Update 1 of CRM 2015 you can write and check these trace logs in Plugin Tracing Logs.
For using this feature you have to enable Plugin Tracing Logs in your organization.
To enable Plugin tracing logs follow the following steps.
- Select Settings and under the System menu, Select Administration.
- On Administration page click on System Settings and navigate to Customization tab.
- Change “Enable logging to plug-in tracing log” to All or Exception.
To open Plugin Tracing Logs select Settings and under the Customization menu, select Plug-In Trace Logs.
No comments:
Post a Comment