Class: Seahorse::Client::Plugins::Logging

Inherits:
Seahorse::Client::Plugin show all
Defined in:
aws-sdk-core/lib/seahorse/client/plugins/logging.rb

Overview

Enables logging for all requests. This plugin allows you to configure your logging device, the log format and the level to log messages at.

See Also:

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details

#add_handlers(handlers, config) ⇒ Object


28
29
30
31
32
# File 'aws-sdk-core/lib/seahorse/client/plugins/logging.rb', line 28

def add_handlers(handlers, config)
  if config.logger
    handlers.add(Client::Logging::Handler, step: :validate)
  end
end