GNU/Linux & free software, howtos, web development, scripts and other geek stuff
Colorful Logging in Rails 3.2
The default Rails logger is really messy. Write somewhere logger.debug
some_object.inspect and then for an hour search where the goddamn message is
in a log file. Fortunately we can format and colorize logger output.
Create config/initializers/log_formatting.rb file and paste this code: