Rails has built in log filtering so you don\'t log passwords and credit cards. Works great for that but when you want to trigger a custom log (like to email) and send your
Sidenote for filtering the log in Rails 4+: The config.filter_parameters has been moved from application.rb to it's own initializer.
config.filter_parameters
config/initializers/filter_parameter_logging.rb
Rails.application.config.filter_parameters += [:password]