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!
Written by Ruben Ascencio
Related protips
4 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/5592/914f05e2dee020ca927249a8dd583bf7.jpeg)
That's fun. Thank you!
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/37527/b41d13553883e9370eaa5c1067179cad.jpeg)
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?
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/30184/456256f76446a35770220a04c6c4a502.png)
@cpalafox puts output is for irb, in rails debug you can use Rails.logger.info/warn/error
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/131194/DSCF0413_-_Version_6_Sq.jpg)
How would you colorize the Rails.logger output with different colors depending on info/warn/error?