Sha256: ef8d92766b6cce6ecc0a9e8e351b6009969e5c4f3cf0f4a2843b5ced16cbea15

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module RequestLogger
    module Config
      class Configuration < Utils::Construct::Config::Base
        set_default_settings(
          log_headers: true,
          log_cookies: true,
          log_body: true,
          log_response_time: true,
          log_level: :debug,
        )

        config_attr :adapters, default_value: [:net_http], type: :array, resolver: :resolve_adapters

        private

        def resolve_adapters(value)
          Adapter.build_components(value)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dev_suite-0.2.13 lib/dev_suite/request_logger/config/configuration.rb
dev_suite-0.2.12 lib/dev_suite/request_logger/config/configuration.rb
dev_suite-0.2.11 lib/dev_suite/request_logger/config/configuration.rb
dev_suite-0.2.10 lib/dev_suite/request_logger/config/configuration.rb
dev_suite-0.2.9 lib/dev_suite/request_logger/config/configuration.rb
dev_suite-0.2.8 lib/dev_suite/request_logger/config/configuration.rb