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.1.1 app/models/concerns/renalware/string_logging.rb
renalware-core-2.1.0 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.167 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.166 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.165 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.164 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.163 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.162 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.161 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.160 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.159 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.158 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.157 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.156 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.155 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.153 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.152 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.151 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.149 app/models/concerns/renalware/string_logging.rb
renalware-core-2.0.148 app/models/concerns/renalware/string_logging.rb