Last active
September 3, 2015 20:37
-
-
Save vterdunov/d5119b6dd248c30090ad to your computer and use it in GitHub Desktop.
set rails log level
This file contains 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.logger = Logger.new(STDOUT) | |
config.log_level = :info | |
config.logger.level = 1 # { 0: :debug, 1: :info, 2: :warn, 3: :error, 4: :fatal } | |
config.lograge.enabled = true | |
config.lograge.custom_options = lambda do |event| | |
params = event.payload[:params].reject do |k| | |
['controller', 'action'].include? k | |
end | |
{ "params" => params } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uses gem 'lograge'