Sha256: 33e97ef97240f24336d4aa7d93bb992c63d58fb832e38700189bb764faca59cd

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

Hanami.application.register_bootable :rack_logger do |container|
  start do
    require "hanami/web/rack_logger"

    use :logger
    use :rack_monitor

    rack_logger = Hanami::Web::RackLogger.new(
      container[:logger],
      filter_params: Hanami.application.configuration.rack_logger_filter_params
    )

    rack_logger.attach container[:rack_monitor]

    register :rack_logger, rack_logger
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha2 lib/hanami/application/container/boot/rack_logger.rb