Monday, August 24, 2015

Rails log - display partials log only

...or: show me only the log of  what is being rendered.
Let say your Rails log is doing to much and you just want to see which partials or layouts are beeing rendered.
cd ~/my-rails-application
tail -f log/development.log                     # entire log as it is

tail -f log/development.log | grep -e 'Render'  # just what is rendered
                                                # partials / layouts
This can be anything you want
tail -f log/development.log | grep -e 'anything'

mirror:
  • https://github.com/equivalent/scrapbook2/blob/master/archive/mini-blogs/2015-08-24-rails-log-only-partials.md