9flnew
Last Updated: February 25, 2016
·
3.757K
· rubenrails

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

4 Responses
Add your response

598

That's fun. Thank you!

over 1 year ago ·
840

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

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

over 1 year ago ·
20794

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

over 1 year ago ·