Access Watch Rails library
A Ruby library to log and analyse Rails HTTP requests using the Access Watch cloud service.
Installation
Install the latest version in your Gemfile
gem "access_watch_rails"
Basic Usage
You will need an API key.
To get an API key, send us an email at [email protected] and we will come back to you.
Then add the following after_action callback in your ApplicationController.
class ApplicationController < ActionController::Base
after_action { AccessWatch::Logger.new(api_key: API_KEY).record(request, response) }
end
API documentation is here: https://access.watch/api-documentation/#request-logging
Author
Alexis Bernard - [email protected] - http://basesecrete.com/
License
The Access Watch Ruby library is licensed under the MIT License - see the LICENSE file for details