I run rails 2.1 and I have a rails task that imports a lot of data and
it’s bloating my development log. I’d like to disable (or reduce)
logging during this particular task, but not globally. I’ve read that
there is a logger.silence block (http://wiki.rubyonrails.org/rails/
pages/HowtoSelectivelySuppressLogging) that would do this. But within
a rake task, how do I reference the logger instance being used to call
the silence method?
Or is there another way to accomplish this?