class Aws::Plugins::Logging::Handler
Public Instance Methods
Source
# File lib/aws-sdk-core/plugins/logging.rb, line 41 def call(context) context[:logging_started_at] = Time.now @handler.call(context).tap do |response| context[:logging_completed_at] = Time.now log(context.config, response) end end
@param [RequestContext] context @return [Response]
Private Instance Methods
Source
# File lib/aws-sdk-core/plugins/logging.rb, line 61 def format(config, response) config.log_formatter.format(response) end
@param [Configuration] config @param [Response] response @return [String]
Source
# File lib/aws-sdk-core/plugins/logging.rb, line 54 def log(config, response) config.logger.send(config.log_level, format(config, response)) end
@param [Configuration] config @param [Response] response @return [void]