Sha256: a873103765782a06807d81e604042b11526f8daf6d9d9cac93353832f666cbc0

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

require 'rack/action_logger/configuration'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-action_logger-0.1.0 lib/rack/action_logger.rb