Skip to content

Instantly share code, notes, and snippets.

@vraravam
Created January 13, 2016 05:39
Show Gist options
  • Save vraravam/0d2caf8c3d7def0b26ba to your computer and use it in GitHub Desktop.
Save vraravam/0d2caf8c3d7def0b26ba to your computer and use it in GitHub Desktop.
LogRage configuration for production env in rails app
# config/environments/production.rb
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
config.lograge.enabled = true
# add time to lograge
config.lograge.custom_options = lambda do |event|
{ time: event.time, params: event.payload[:params].except('controller', 'action', 'utf8', 'authenticity_token', 'commit') }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment