On Tue, Apr 27, 2010 at 3:49 PM, TomRossi7 <tom@themolehill.com> wrote:
> I do appreciate the feedback, but I wonder if others agree? Maybe
> that is why its not a simple task within Rails?
I think logging is a tool, and what you choose to record is up to you.
That said, I have no idea how to selectively turn off the standard Rails
logging. :-)
I was able to get rid of the usual "Processing blah blah..." message
with e.g.
def index
logger.auto_flushing= 0
@things = Thing.all
logger.send("clear_buffer")
logger.auto_flushing= 1000
end
but the "Rendering template blah blah... " still shows up. Maybe that'll
give you some ideas. Sounds like a good idea for a gem, if selective
(or more configurable) logging isn't part of Rails 3. I haven't looked.
FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment