Preserve colours in heroku logs when piping
Just a little trick of the day to leverage your fancy colour monitor when piping heroku logs around.
Fire your editor at file
and somewhere at line 20, remove the condition that says
if STDOUT.isatty && ENV.has_key?("TERM") display(colorize(chunk)) else display(chunk) end
and change it to something like this
Make sure you don't use the heroku logs anywhere else, as this modification will break stuff.
You may also want to modify the other occurence of the same condition a few lines further down to
heroku logs --app nodecload -t|sed 's/2[^ ]* //'
Enjoy a happier life.