Module: DevSuite::RequestLogger

Defined in:
lib/dev_suite/request_logger.rb,
lib/dev_suite/request_logger/config.rb,
lib/dev_suite/request_logger/logger.rb,
lib/dev_suite/request_logger/adapter.rb,
lib/dev_suite/request_logger/request.rb,
lib/dev_suite/request_logger/response.rb,
lib/dev_suite/request_logger/extractor.rb,
lib/dev_suite/request_logger/adapter/base.rb,
lib/dev_suite/request_logger/config/config.rb,
lib/dev_suite/request_logger/extractor/base.rb,
lib/dev_suite/request_logger/request_logger.rb,
lib/dev_suite/request_logger/adapter/adapter.rb,
lib/dev_suite/request_logger/adapter/faraday.rb,
lib/dev_suite/request_logger/adapter/net_http.rb,
lib/dev_suite/request_logger/extractor/faraday.rb,
lib/dev_suite/request_logger/extractor/net_http.rb,
lib/dev_suite/request_logger/extractor/extractor.rb,
lib/dev_suite/request_logger/config/configuration.rb,
lib/dev_suite/request_logger/adapter/middleware/faraday.rb

Defined Under Namespace

Modules: Adapter, Adapters, Config, Extractor, Logger Classes: Request, Response

Class Method Summary collapse

Class Method Details

.with_logging(&block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/dev_suite/request_logger/request_logger.rb', line 13

def with_logging(&block)
  enable_adapters
  block.call
ensure
  # Ensure that adapters are disabled even if an exception is raised
  disable_adapters
end