Return to Snippet

Revision: 28269
at July 6, 2010 09:03 by insanedreamer


Updated Code
def log(*entries)
  # makes it easy to find logger output in your log files
  logger.info "e[1;32m LOGGER OUTPUT: #{Time.now} e[0m"
  entries.each { |e| logger.info "e[1;31m #{e}e[0m" } 
  logger.info "e[1;32m --- END --- e[0m"
end

Revision: 28268
at July 6, 2010 09:02 by insanedreamer


Initial Code
def log(*entries)
  # makes it easy to find logger output in your log files
  logger.info "e[1;32m LOGGER OUTPUT: #{Time.now} e[0m"
  entries.each { |e| logger.info "e[1;31m #{e}e[0m" } 
  logger.info "e[1;32m --- END --- e[0m"
end

Initial URL

                                

Initial Description

                                

Initial Title
easy-to-find logger.info output (rails)

Initial Tags
textmate, rails, ruby

Initial Language
Rails