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 ed57619 commit 4b5c0de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
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 4b5c0de

Please sign in to comment.