Sha256: 55c576af857f3209687c834b54ed613d6aef139f4a99fda9075bf8c86ae7217d

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 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.logger.filter_params
    )

    rack_logger.attach container[:rack_monitor]

    register :rack_logger, rack_logger
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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