Skip to content

Instantly share code, notes, and snippets.

@ehrenmurdick
Created October 5, 2010 17:39
Show Gist options
  • Save ehrenmurdick/611969 to your computer and use it in GitHub Desktop.
Save ehrenmurdick/611969 to your computer and use it in GitHub Desktop.
Pretty print into rails logs
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