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


/ Published in: Rails
Save to your folder(s)



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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.