Class: Marvin::ExceptionTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/marvin/exception_tracker.rb

Class Method Summary collapse

Class Method Details

.log(e) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/marvin/exception_tracker.rb', line 9

def self.log(e)
  logger.fatal "Oh noes cap'n - we have an exception!."
  logger.fatal "#{e.class.name}: #{e.message}"
  e.backtrace.each do |line|
    logger.fatal line
  end
  @@log_exception_proc.call(e)
end