README.md in loggery-0.1.0 vs README.md in loggery-0.2.0
- old
+ new
@@ -22,14 +22,20 @@
And then execute:
$ bundle
### Basic Rails integration
+
+To enable, add
+
```ruby
config.loggery.enabled = true
```
-to your `config/application.rb`. In this basic setup, Loggery will save your log output to
+to your `config/application.rb` or to the environment specific `config/staging.rb` and/or
+`config/production.rb`.
+
+In this basic setup, Loggery will save your log output to
`log/logstash-<rails-env>.log` in JSON format. It will also:
* use [lograge](https://github.com/roidrage/lograge) to create a single-line log entry for every
Rails request including the db / view / total duration, controller name, action, http status, etc...
* add the process PID to every log line
* add the request ID to every HTTP request, to easily follow the log trace of any single request.