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.84 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.83 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.82 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.81 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.80 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.79 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.78 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.77 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.76 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.75 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.74 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.73 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.72 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.71 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.70 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.69 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.68 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.67 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.64 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.63 app/models/concerns/renalware/string_logging.rb