error handling - CRM 2011 - ITracingService getting access to the traceInfo at runtime -
I have some custom logging in the plugin and my custom logging (which is called a catch block, plugin ending before).
I'm unable to access the tracingService's content. I wonder if it's accessible at all?
I tried tracingService.ToString () Just devs had provided a useful overload, odd as I expect to find the class name "Microsoft.Crm.Sandbox.SandboxTracingService".
Obviously the use of tracing service content by the end of the Dynamics CRM parcel, if it is needed
Anyone have any ideas on this?
Kind regards, Gary
Trace text access to tracing service execution Does not provide, but it can be overcome by your own implementation of ITRcingService , note that before the calling code of your plugin, before the Execute method trace Can not find any text written on the log - which means that you have many plug-in firing, You will not find their trace output plugin that throws the exception.
Public class CrmTracing: Iterasing service {ITracingService _tracingService; Stringbiller _internalTrace; Public CrmTracing (ITRCSService tracingService) {_tracingService = tracingService; _internalTrace = new stringbilder (); } Public Zero Trace (String Format, Paramos Object [] AGR) {if (_tracingService! = Null) _tracingService.Trace (format, args); _internalTrace.AppendFormat (format, args). Ependline (); } Public string GetTraceBuffer () {return _internalTrace.ToString (); }} Simply provide it in your plugin given in the CRM ITRcingService Since it is the same interface, if you pass it in other sections and methods So, it works the same way.
Comments
Post a Comment