Posted By

insanedreamer on 07/06/10


textmate rails ruby logging

Versions (?)

easy-to-find output (rails)

 / Published in: Rails

  1. def log(*entries)
  2. # makes it easy to find logger output in your log files
  3. "e[1;32m LOGGER OUTPUT: #{} e[0m"
  4. entries.each { |e| "e[1;31m #{e}e[0m" }
  5. "e[1;32m --- END --- e[0m"
  6. end

Report this snippet  


RSS Icon Subscribe to comments
Posted By: insanedreamer on July 10, 2010

You can use this in test_helper for tests as well. Replace with

You need to login to post a comment.