9flnew
Last Updated: February 25, 2016
·
3.582K
· rubenrails
6fce1175151b0668f66e36bcfe5c3994

Easy and beautiful Rails logs

If you're already using pow for your rails app, you can install powder in order to make pow even easier. From the powder page:

“Makes Pow even easier. I mean really, really, ridiculously easy”

Ok, so let's install powder:

$ gem install powder

Once installed, you can tail the log of the current application using:

$ powder applog

It works as expected, but...what about colorizing the log output? Let's use grc to add a little bit of color.

“Use grc to add 'stylesheets' for your favorite terminal apps”

Install grc using Homebrew:

$ brew install grc

Now just prepend grc to your tail or applog commands:

$ grc powder applog

Enjoy!

Picture

Say Thanks
Respond

4 Responses
Add your response

598
914f05e2dee020ca927249a8dd583bf7

That's fun. Thank you!

over 1 year ago ·
840
B41d13553883e9370eaa5c1067179cad

It's great! the problem is there's no 'puts' output using this, is there any way to make it show the puts message, or any other way to help us debug the app?

over 1 year ago ·
9233
456256f76446a35770220a04c6c4a502

@cpalafox puts output is for irb, in rails debug you can use Rails.logger.info/warn/error

over 1 year ago ·
20794
Dscf0413   version 6 sq

How would you colorize the Rails.logger output with different colors depending on info/warn/error?

over 1 year ago ·