class Aws::Plugins::Logging::Handler

def call(context)

Returns:
  • (Response) -

Parameters:
  • context (RequestContext) --
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

def format(config, response)

Returns:
  • (String) -

Parameters:
  • response (Response) --
  • config (Configuration) --
def format(config, response)
  config.log_formatter.format(response)
end

def log(config, response)

Returns:
  • (void) -

Parameters:
  • response (Response) --
  • config (Configuration) --
def log(config, response)
  config.logger.send(config.log_level, format(config, response))
end