Including this gem will format Rails logs with Lograge. Logs will include user ID, e-mail, and request IP.
Add this line to your application's Gemfile:
group :staging, :production do
gem 'metova-logger'
end
And then execute:
$ bundle
- Fork it ( https://github.com/[my-github-username]/metova-logger/fork )
- 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 a new Pull Request