Skip to content

Instantly share code, notes, and snippets.

@sorokadima
Created May 27, 2020 09:05
Show Gist options
  • Save sorokadima/a11c0ceb5058668f5f56cc8dc958461e to your computer and use it in GitHub Desktop.
Save sorokadima/a11c0ceb5058668f5f56cc8dc958461e to your computer and use it in GitHub Desktop.
Ruby rest client log (rest-client, restclient)
require 'rest-client'
RestClient.log =
Object.new.tap do |proxy|
def proxy.<<(message)
puts message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment