It just canonical rails logger, you don't miss anything, just better!
Getting Started
Install via Rubygems
$ gem install rails_better_logger
And then you could make this gem applied to all your's rails project with just settings one environment variable in you $HOME startup script.
e.g. any of .bashrc/.profile/.bash_profie, setting this:
export $RUBYOPT=-rrails_better_logger
Or ...
Add to your project Gemfile
group :development do
gem 'rails_better_logger'
end
SnapShot
- Highlight any request and controller action, with params.
- Highlight
UPDATE/INSERT/DELETE
SQL query.
- SQL query positional parameter always be print to a new line. (make query and data seperate, more clearly)
- Highlight slow rendered views. (great than 99 ms)
Support
- Rails 4+, issues welcome.
Advise
- Any advise is welcome, just make this gem better.
TODO
- Background highlight for any Exception.
- Make color can be configure.
Contributing
- Bug reports
- Source
- Patches:
- Fork on Github.
- Run
gem install --dev rails_better_logger
orbundle
. - 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
. - Send a pull request :D.
license
Released under the MIT license, See LICENSE for details.