README.md in loggery-0.2.1 vs README.md in loggery-0.3.0
- old
+ new
@@ -23,11 +23,11 @@
$ bundle
### Basic Rails integration
-To enable, add
+To enable, add
```ruby
config.loggery.enabled = true
```
@@ -83,12 +83,12 @@
```ruby
include Loggery::Controller::LoggingContext
def loggery_log_context
- {
- user_id: current_user&.id,
+ {
+ user_id: current_user&.id,
user_email: current_user&.email
}
end
```
@@ -96,10 +96,10 @@
method `loggery_log_context` to include whichever additional information from your controllers you
would like to add to your log records.
### Sidekiq
-If you're using Sidekiq you can enable structured logging in sidekiq by adding these lines to
+If you're using Sidekiq you can enable structured logging in sidekiq by adding these lines to
`config/initializers/sidekiq.rb`:
```ruby
Loggery.setup_sidekiq(config)
```