No commit activity in last 3 years
No release in over 3 years
Merb plugin that provides some color to merb console
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0
 Project Readme

merb-colorful-logger

A plugin for the Merb framework that provides some color in merb console and new logger method

Instalation

gem sources -a http://gemscutter.org
sudo gem install merb-colorful-logger

# config/dependencies.rb
dependency "merb-colorful-logger"

Usage

somewhere: Merb.logger.d some_var_may_be_request

console output (colorful!): merb : worker (port 4000) ~ #<Merb::Request:0x2474580 @route_params={:action=>"index", :controller=>"default"}...

Custom colors

Merb::BootLoader.before_app_loads do
  Merb::Plugins.config[:merb_colorful_logger][:colors][:warn] = :blue
  Merb::Plugins.config[:merb_colorful_logger][:colors][:error] = :yellow
end

etc

Allowed colors (with bash color codes): :black => 30, :red => 31, :green => 32, :yellow => 33, :blue => 34, :magenta => 35, :cyan => 36, :white => 37