class Seahorse::Client::Logging::Handler
def call(context)
-
(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 call(context)
-
(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)
-
(String)-
Parameters:
-
response(Response) -- -
config(Configuration) --
def format(config, response) config.log_formatter.format(response) end
def format(config, response)
-
(String)-
Parameters:
-
response(Response) -- -
config(Configuration) --
def format(config, response) config.log_formatter.format(response) end
def log(config, response)
-
(void)-
Parameters:
-
response(Response) -- -
config(Configuration) --
def log(config, response) config.logger.send(config.log_level, format(config, response)) end
def log(config, response)
-
(void)-
Parameters:
-
response(Response) -- -
config(Configuration) --
def log(config, response) config.logger.send(config.log_level, format(config, response)) end