But, some activities you don't want to be stored in database while you are developing Custom Webpart . This is the way how to turn off the for a while in your custom code block.
Step by Step
- Add "using CMS.Base;"
- Wrap your code block with this using block code.
using (CMSActionContext ctx = new CMSActionContext()) { ctx.LogEvents = false; //your action here. }So anything code you put under comment "Your action" will not be recorded in Event Log table.
Have a try.
By Mohd Zulkamal
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)
0 comments:
Post a Comment