Rack::CustomLogger
- Switch rack logger
Overwrite env['rack.logger'] in Rack::CustomLogger.
Installation
Add this line to your application's Gemfile:
gem 'rack-custom_logger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rack-custom_logger
Usage
use Rack::CustomLogger, YourOwnLogger.new
Set Formatter and level
use Rack::CustomLogger, YourOwnLogger.new, YourOwnLogger::INFO, YouOwnSpecialFormatter.new
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