https://github.com/uswitch/rest-client-logger
Adds logging of RestClient requests to the Rails debug log
https://github.com/uswitch/rest-client-logger
Last synced: 11 months ago
JSON representation
Adds logging of RestClient requests to the Rails debug log
- Host: GitHub
- URL: https://github.com/uswitch/rest-client-logger
- Owner: uswitch
- License: mit
- Created: 2014-05-02T16:42:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T13:46:30.000Z (over 8 years ago)
- Last Synced: 2024-08-10T23:09:39.458Z (almost 2 years ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 7
- Watchers: 45
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# RestClientLogger
Instruments the [RestClient](https://github.com/rest-client/rest-client) gem and logs requests made with RestClient to the Rails development log.
Started GET "/" for 127.0.0.1 at 2014-05-02 17:09:49 +0100
Processing by WelcomeController#index as HTML
RestClient GET (45.7ms) http://www.google.com?q=vikings {"User-Agent"=>"A browser"}
Rendered text template (0.0ms)
Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 0.0ms)
## Installation
Add this line to your Rails application's Gemfile:
gem 'rest-client-logger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rest-client-logger
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request