Skip to content

Commit

Permalink
added RAILS_LOG_TO_STDOUT to dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlittman committed May 21, 2019
1 parent 9485378 commit b035b79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/environments/development.rb
Expand Up @@ -37,4 +37,10 @@
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker

if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
end

0 comments on commit b035b79

Please sign in to comment.