Like logstasher, but for rack apps.
Rack middleware to log requests in logstash json event format.
It is designed to give Rails-like logging to Sinatra apps.
The gem is currently used by search-api and contentful-listener-api.
Add this line to your application’s Gemfile:
And then execute:
Or install it yourself as:
$ gem install rack-logstasher
Add this to the middleware stack. e.g.
use Rack::Logstasher::Logger, Logger.new("/path/to/logfile.json.log")
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request