YARL is a ruby/logger extension that provides:
- Full ANSI 4-bit color support
- SPAM -- a severity level lower than DEBUG
- Clean, low-clutter formatting
- Common defaults, like writing to STDOUT
As an extension, logger
is fully implemented.
YARL supports 4-bit ANSI colors -- both text and background -- in the logger header.
Additionally, the following severity levels have message colors:
FATAL
has a background color -- defaults to redERROR
has a text color -- defaults to redSPAM
has a text color -- defaults to bright black
Add this line to your application's Gemfile:
gem 'yarl'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yarl
require 'yarl'
logger = YARL.new "Simple Example", color: :green
logger.info "Hello, World!"
Please see examples/complex.rb for the source code.
Feel free to make an issue, and I will do my best to respond quickly.
Or, fork it, edit it, and pull request.