Created
October 5, 2010 17:39
-
-
Save ehrenmurdick/611969 to your computer and use it in GitHub Desktop.
Pretty print into rails logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveSupport | |
class BufferedLogger | |
if RAILS_ENV == 'development' | |
def flowerbox *args | |
info "=" * 80 | |
info caller[0] | |
args.each do |a| | |
info "-" * 80 | |
info a.inspect | |
end | |
info "=" * 80 | |
end | |
else | |
def flowerbox *args | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment