Created
January 13, 2016 05:39
-
-
Save vraravam/0d2caf8c3d7def0b26ba to your computer and use it in GitHub Desktop.
LogRage configuration for production env in rails app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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