Last active
January 27, 2017 19:30
-
-
Save lbalceda/5681074 to your computer and use it in GitHub Desktop.
rails 3 vs rails 4 unicorn logger configuration settings
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
# For Production you would probably want to default the Log Level to 'INFO' instead of 'DEBUG'. | |
# Rails 3 | |
config.logger = Logger.new(STDOUT) | |
config.logger.level = Logger.const_get( | |
ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'DEBUG' | |
) | |
# Rails 4 | |
config.logger = ActiveSupport::Logger.new(STDOUT) | |
config.logger.level = ActiveSupport::Logger.const_get( | |
ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'DEBUG' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your gist saved the day.