Have you ever had an issue where you need logging mechanism to troubleshoot…
Out there we have some 3rd party software which can help with this…but we can use Notes entity in CE so that we can enable logging to our .Net Assembly code with out any other 3rd party additions.
Add the below part to your code..
Entity _annotation = new Entity(“annotation”);
_annotation.Attributes[“mimetype”] = @”text/plain”;
_annotation.Attributes[“notetext”] = message;
And use the method above to create log wherever needed like below..no other DLL additions required..you fill find the logs under Notes entity.
createlog(service, “Your String to be logged”);
Hope this helps while troubleshooting…
One thought on “Enable logging in CE without any third party tools”