https://github.com/zw963/rails_better_logger
It's just canonical rails logger, you don't miss anything, just better!
https://github.com/zw963/rails_better_logger
Last synced: over 1 year ago
JSON representation
It's just canonical rails logger, you don't miss anything, just better!
- Host: GitHub
- URL: https://github.com/zw963/rails_better_logger
- Owner: zw963
- License: mit
- Created: 2015-09-20T16:03:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T09:30:14.000Z (almost 11 years ago)
- Last Synced: 2025-03-15T00:26:19.454Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 234 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# RailsBetterLogger [](https://travis-ci.org/zw963/rails_better_logger) [](http://badge.fury.io/rb/rails_better_logger)
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:
```sh
export $RUBYOPT=-rrails_better_logger
```
Or ...
Add to your project Gemfile
group :development do
gem 'rails_better_logger'
end
## SnapShot
1. Highlight any request and controller action, with params.

2. Highlight `UPDATE/INSERT/DELETE` SQL query.

3. SQL query positional parameter always be print to a new line.
(make query and data seperate, more clearly)

4. 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](https://github.com/zw963/rails_better_logger/issues)
* [Source](https://github.com/zw963/rails_better_logger)
* Patches:
* Fork on Github.
* Run `gem install --dev rails_better_logger` or `bundle`.
* 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](https://github.com/zw963/rails_better_logger/blob/master/LICENSE) for details.