Created
May 27, 2020 09:05
-
-
Save sorokadima/a11c0ceb5058668f5f56cc8dc958461e to your computer and use it in GitHub Desktop.
Ruby rest client log (rest-client, restclient)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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