Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option for Logging Requests and Responses #175

Open
sshaw opened this issue Nov 25, 2022 · 0 comments
Open

Add Option for Logging Requests and Responses #175

sshaw opened this issue Nov 25, 2022 · 0 comments

Comments

@sshaw
Copy link

sshaw commented Nov 25, 2022

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
@sshaw sshaw changed the title Add Option for Logger Requests and Responses Add Option for Logging Requests and Responses Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant