Sha256: 8712d2e37732772f236fedd7c587a7d439093a57c0e9c27ee8a2c2b7964da101
Contents?: true
Size: 895 Bytes
Versions: 3
Compression:
Stored size: 895 Bytes
Contents
# Rack::Logstasher 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](https://github.com/alphagov/search-api) and [contentful-listener-api](https://github.com/alphagov/contentful-listener-api). ## Installation Add this line to your application's Gemfile: gem 'rack-logstasher' And then execute: $ bundle Or install it yourself as: $ gem install rack-logstasher ## Usage Add this to the middleware stack. e.g. use Rack::Logstasher::Logger, Logger.new("/path/to/logfile.json.log") ## 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 ## Licence [MIT License](LICENCE)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-logstasher-2.2.0 | README.md |
rack-logstasher-2.1.0 | README.md |
rack-logstasher-2.0.0 | README.md |