I use a plugin base class that can write detailed info to the tracing service (using ITracingService). Think of all relevant details of the IPluginExecutionContext object, exception stack trace info etc. This can sum up to a reasonable amount of lines, but in plugins running in full trust this is no issue.
However, when I run the same plugins in sandboxed mode, a (sometimes) considerable part of the log written is missing in the resulting log XML. I found out that actually only the last 10 KB of text is returned by sandboxed plugins.
I see this behaviour in Dynamics CRM 2011 and up to 2016 SP 1.
Has someone experienced this too? Is this a bug or is there a solution?
If this post is an answer or helpful, please do not forget to vote!