# Log to STDOUT with the current request id as a default log tag.
config.log_tags = [:request_id]
- config.logger = ActiveSupport::TaggedLogging.logger($stdout)
+ config.logger = if Settings.key?(:log_path)
+ ActiveSupport::TaggedLogging.logger(Settings.log_path)
+ else
+ ActiveSupport::TaggedLogging.logger($stdout)
+ end
# Change to "debug" to log everything (including potentially personally-identifiable information!)
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")