Sha256: 9489fd056234181196f33674fef6a46f2d9c923dcf8c07cea06089c9a07393cb

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

module Maestrano::Connector::Rails::Concerns::ConnectorLogger
  extend ActiveSupport::Concern

  module ClassMethods
    def log(level, organization, msg)
      Rails.logger.method(level).call("organization_uid=\"#{organization&.uid}\", tenant=\"#{organization&.tenant}\"), message=\"#{msg}\"")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.0.0.pre.RC11 app/models/maestrano/connector/rails/concerns/connector_logger.rb
maestrano-connector-rails-2.0.0.pre.RC10 app/models/maestrano/connector/rails/concerns/connector_logger.rb
maestrano-connector-rails-2.0.0.pre.RC9 app/models/maestrano/connector/rails/concerns/connector_logger.rb