Skip to content

Commit

Permalink
logs-test
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Jan 6, 2023
1 parent e2c6c9e commit 431199c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
# Settings specified here will take precedence over those in config/application.rb.

require 'syslog/logger'
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new('registry_2'))

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 431199c

Please sign in to comment.