logger-better
Simple monkey patch to stdlib's Logger
to make it easier to use.
I wrote this gem because I've done this same basic thing in many projects and got tired of it.
Installation
Add this line to your application's Gemfile:
gem 'logger-better'
And then execute:
$ bundle
Or install it yourself as:
$ gem install logger-better
Enhancements
- Default log format is more readable:
2013-08-10T15:19:21Z [app#68530] INFO: hi
- Set
logger.level
with symbols.logger.level = :info
- Provide a
NullLogger
object to be used in cases where you need to tell some code to shut up.
Contributing
- Fork it
- 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 new Pull Request