Be kind to other programmers; do not insert escape sequences directly into your lines. Perhaps use a library like Rainbow or Term-ANSIColor ? For example, Term-ANSIColor:
require 'term/ansicolor'
include Term::ANSIColor
Rails.logger.add 1, "#{red(ATCHUNG!)}: pay attention to me!"
source
share