Sha256: f0af2653381683b60c268c743b36e93e9e23d75e58203e7d45c03b218477a25c
Contents?: true
Size: 406 Bytes
Versions: 7
Compression:
Stored size: 406 Bytes
Contents
module Marvin class ExceptionTracker is :loggable cattr_accessor :log_exception_proc self.log_exception_proc = proc { |e| e } 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 end end
Version data entries
7 entries across 7 versions & 2 rubygems