Sha256: 8af75ba09be219d685234b12d264ba747d91262b335cabbbe3c84dbbf37d6741

Contents?: true

Size: 860 Bytes

Versions: 6

Compression:

Stored size: 860 Bytes

Contents

module Rack::ActionLogger
  class << self
    attr_accessor :configuration
  end

  def self.new(app)
    Context.new(app)
  end

  def self.configure
    yield configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.logger
    configuration.logger
  end

  autoload :Configuration, 'rack/action_logger/configuration'
  autoload :Container, 'rack/action_logger/container'
  autoload :Context, 'rack/action_logger/context'
  autoload :Emitter, 'rack/action_logger/emitter'
  autoload :ControllerConcerns, 'rack/action_logger/controller_concerns'
  autoload :EmitAdapter, 'rack/action_logger/emit_adapter'
  autoload :ParameterFiltering, 'rack/action_logger/parameter_filtering'
  autoload :Metrics, 'rack/action_logger/metrics'
  autoload :ActiveRecordExtension, 'rack/action_logger/active_record_extension'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-action_logger-0.4.0 lib/rack/action_logger.rb
rack-action_logger-0.3.0 lib/rack/action_logger.rb
rack-action_logger-0.2.0 lib/rack/action_logger.rb
rack-action_logger-0.1.9 lib/rack/action_logger.rb
rack-action_logger-0.1.8 lib/rack/action_logger.rb
rack-action_logger-0.1.7 lib/rack/action_logger.rb