Module: Renalware::StringLogging

Extended by:
ActiveSupport::Concern
Included in:
Feeds::Files::PracticeMemberships::ImportJob, Feeds::Files::PrimaryCarePhysicians::ImportJob
Defined in:
app/models/concerns/renalware/string_logging.rb

Instance Method Summary collapse

Instance Method Details

#logging_to_stringio(string_io) ⇒ Object



7
8
9
10
11
# File 'app/models/concerns/renalware/string_logging.rb', line 7

def logging_to_stringio(string_io)
  logger = ActiveSupport::Logger.new(string_io)
  logger.formatter = Rails.configuration.log_formatter
  Rails.logger = ActiveSupport::TaggedLogging.new(logger)
end