bigcommerce / bigcommerce-api-ruby

Connect Ruby applications with the Bigcommerce Platform
https://developer.bigcommerce.com
MIT License
79 stars 123 forks source link

Add Option for Logging Requests and Responses #175

Open sshaw opened 1 year ago

sshaw commented 1 year ago

Something like :debug => true or :debug => filehandle which would add the correct Faraday config:

Faraday.new do |c|
  # Etc...
  c.response :logger, Logger.new(io), { headers: true, bodies: true }
end