Skip to content

Commit

Permalink
Merge branch 'main' into nimmo-ruby-3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 13, 2024
2 parents 4bfe2ad + b05b7cb commit eacc333
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@
# .tap { |logger| logger.formatter = ::Logger::Formatter.new }
# .then { |logger| ActiveSupport::TaggedLogging.new(logger) }

# Log to production.log. New 7.1 logging uses BroadcastLogger
# Not using TaggedLogging yet.
loggers = [
"log/production.log"
].map do |output|
ActiveSupport::Logger.new(output).
tap { |logger| logger.formatter = Logger::Formatter.new }
# .then { |logger| ActiveSupport::TaggedLogging.new(logger) }
end
config.logger = ActiveSupport::BroadcastLogger.new(*loggers)

# Prepend all log lines with the following tags.
# config.log_tags = [ :request_id, :subdomain, :uuid ]

Expand Down

0 comments on commit eacc333

Please sign in to comment.