I swear I posted this a few hours ago but I can’t see it!!!
Does anybody know a way to turn off logging for a few LOC/block, a
function or even a class?
Why would you want to do that? Well we have a script that checks
yesterdays logs for errors and then emails the results to us. The
emailing processing logs the email sent which means that its contents
are then picked up again the next day. Consequently we have an ever
increasing log report!