|
@@ -54,6 +54,12 @@ Rails.application.configure do
|
|
|
# Use a different logger for distributed setups.
|
|
|
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
|
|
|
|
|
+ if ENV['RAILS_LOG_TO_STDOUT'].present?
|
|
|
+ logger = ActiveSupport::Logger.new(STDOUT)
|
|
|
+ logger.formatter = config.log_formatter
|
|
|
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
|
|
|
+ end
|
|
|
+
|
|
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
|
# config.action_controller.asset_host = 'http://assets.example.com'
|
|
|
|