/ Published in: Rails

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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
Comments
