Class: Fit4Ruby::ILogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/fit4ruby/Log.rb

Instance Method Summary collapse

Instance Method Details

#critical(msg, exception = nil) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/fit4ruby/Log.rb', line 28

def critical(msg, exception = nil)
  if exception
    raise Error, "#{msg}: #{exception.message}", exception.backtrace
  else
    raise Error, msg
  end
end

#fatal(msg) ⇒ Object



23
24
25
26
# File 'lib/fit4ruby/Log.rb', line 23

def fatal(msg)
  super
  exit 1
end