Read more

Make Less interpret the escape codes in a logfile

Christoph Beck
December 08, 2011Software engineer

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does not interpret the escape sequences used in the rails logfiles. To enable this type:

less -R my_logfile.log
Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

You can also have an alias to save yourself the typing

alias less='less -R'
Posted by Christoph Beck to makandra dev (2011-12-08 21:52)