diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2016-02-23 14:12:03 -0600 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2016-02-23 14:12:03 -0600 |
commit | e9b96f0d666adfd3484641a4a55feb1c774d3378 (patch) | |
tree | 8033ade2765f504a739cb3b1952c539298db01aa /railties/lib | |
parent | 1a715896ae1732f2c421d436b65cfefe00900eb4 (diff) | |
parent | 4a836dca6562963c3112ff853017b1174af02251 (diff) | |
download | rails-e9b96f0d666adfd3484641a4a55feb1c774d3378.tar.gz rails-e9b96f0d666adfd3484641a4a55feb1c774d3378.tar.bz2 rails-e9b96f0d666adfd3484641a4a55feb1c774d3378.zip |
Merge pull request #23734 from schneems/schneems/stdout-again
Alternative to #23638 log to STDOUT via env var
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index 82509f5ef5..e14e2c7286 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt @@ -60,6 +60,10 @@ Rails.application.configure do # require 'syslog/logger' # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + if ENV["RAILS_LOG_TO_STDOUT"].present? + config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT)) + end + # Use a different cache store in production. # config.cache_store = :mem_cache_store |