Turning off logging for a function

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!

On Mon, 10 Sep 2007, George P. wrote:

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?

silence {…}

doc_root/actionpack-1.13.3/rdoc/index.html

    Hugh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs