Sha256: c9638d54fd6dae59d576cc6f46b000be90dbab99596e7428981cdb7b69bf4506

Contents?: true

Size: 336 Bytes

Versions: 149

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module StringLogging
    extend ActiveSupport::Concern

    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
  end
end

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
renalware-core-2.0.40 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.39 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.38 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.37 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.36 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.35 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.34 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.33 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.32 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.31 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.30 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.28 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.27 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.26 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.25 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.24 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.23 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.22 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.21 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.20 app/models/concerns/renalware/string_logging.rb