class Faraday::Response::Logger

Faraday::Logging::Formatter to see specifically what is logged.
lifecycle to a given Logger object. By default, this logs to STDOUT. See
Logger is a middleware that logs internal events in the HTTP request

def call(env)

def call(env)
  @formatter.request(env)
  super
end

def initialize(app, logger = nil, options = {})

def initialize(app, logger = nil, options = {})
  super(app)
  logger ||= ::Logger.new($stdout)
  formatter_class = options.delete(:formatter) || Logging::Formatter
  @formatter = formatter_class.new(logger: logger, options: options)
  yield @formatter if block_given?
end

def on_complete(env)

def on_complete(env)
  @formatter.response(env)
end

def on_error(exc)

def on_error(exc)
  @formatter.exception(exc) if @formatter.respond_to?(:exception)
end