customink / central_logger

Ruby Mongo DB Logger for Rails - centralized logging for rails apps in MongoDB. Converted to gem, added global exception logging, and added Rails 3 (or 2) support.
http://blog.philburrows.com/articles/2009/09/28/rails-logging-with-mongodb/
MIT License
128 stars 35 forks source link

Feature request: add ability to ignore actions #4

Closed trevorturk closed 7 years ago

trevorturk commented 13 years ago

This adds the ability to ignore actions. I'm sure this isn't worth pulling as-is, but I think it's a worthwhile feature to consider including. Let me know if you'd like me to help at all, if you're interested. Thanks!

astupka commented 13 years ago

The team was discussing this change and we were thinking of implementing this similar to the current convention for filtering sensitive params in Rails 3 (in application.rb). Would that work for you?

config.filter_parameters += [:password]

Example:

config.central_logger.filter_actions += ["home#index"]
trevorturk commented 13 years ago

That's a great idea! +1 for sure :)