Sha256: bf6990a3e8a579e217a6e2e6e4fb0950115e55cfb99f7453a984241f23509352

Contents?: true

Size: 904 Bytes

Versions: 163

Compression:

Stored size: 904 Bytes

Contents

module Seahorse
  module Client
    module Plugins
      # @api private
      class Logging < Plugin

        option(:logger,
          default: nil,
          doc_type: 'Logger',
          docstring: <<-DOCS)
The Logger instance to send log messages to. If this option
is not set, logging is disabled.
          DOCS

        option(:log_level,
          default: :info,
          doc_type: Symbol,
          docstring: 'The log level to send messages to the logger at.')

        option(:log_formatter,
          default: Seahorse::Client::Logging::Formatter.default,
          doc_default: 'Aws::Log::Formatter.default',
          doc_type: 'Aws::Log::Formatter',
          docstring: 'The log formatter.')

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

      end
    end
  end
end

Version data entries

163 entries across 163 versions & 1 rubygems

Version Path
aws-sdk-core-3.100.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.99.2 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.99.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.99.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.98.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.97.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.97.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.96.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.96.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.95.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.94.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.94.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.93.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.92.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.91.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.91.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.90.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.90.0 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.89.1 lib/seahorse/client/plugins/logging.rb
aws-sdk-core-3.89.0 lib/seahorse/client/plugins/logging.rb