Method: Janky::Exception::Logger#report
- Defined in:
- lib/janky/exception.rb
#report(e, context = {}) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/janky/exception.rb', line 36 def report(e, context={}) @stream.puts "ERROR: #{e.class} - #{e.}\n" @context.each do |k, v| @stream.puts "%12s %4s\n" % [k, v] end @stream.puts "\n#{e.backtrace.join("\n")}" end |