Sha256: b2403725e0a399537b89d2620faa0e2edf59461ab35b7476e46fbf9b3ebb9b8e

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

Hanami.application.register_provider :rack_logger do
  start do
    require "hanami/web/rack_logger"

    target.start :logger
    target.start :rack_monitor

    rack_logger = Hanami::Web::RackLogger.new(target[:logger])
    rack_logger.attach target[:rack_monitor]

    register :rack_logger, rack_logger
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha8 lib/hanami/application/container/providers/rack_logger.rb
hanami-2.0.0.alpha7.1 lib/hanami/application/container/providers/rack_logger.rb
hanami-2.0.0.alpha7 lib/hanami/application/container/providers/rack_logger.rb
hanami-2.0.0.alpha6 lib/hanami/application/container/providers/rack_logger.rb