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.

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.

"public-class": MyProfile {public void Execute IServiceProvider serviceProvider} {var tracingService = New CrmTracing (ITracingService) serviceProvider.GetService (typeof (ITracingService) )); TracingService.Trace ("works as usual."); Var trace = tracingService.GetTraceBuffer (); }}

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -