Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/uicov/ruby_patches.rb

Overview

Author: Alexey Lyanguzov ([email protected])

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Instance Method Details

#_addObject



14
# File 'lib/uicov/ruby_patches.rb', line 14

alias :_add :add

#_fatalObject



15
# File 'lib/uicov/ruby_patches.rb', line 15

alias :_fatal :fatal

#add(severity, message, progname, &blk) ⇒ Object



17
18
19
20
21
22
# File 'lib/uicov/ruby_patches.rb', line 17

def add(severity, message, progname, &blk)
  progname_orig = self.progname
  self.progname = get_caller
  _add(severity, message, progname, &blk)
  self.progname = progname_orig
end

#fatal(*args, &blk) ⇒ Object



24
25
26
27
# File 'lib/uicov/ruby_patches.rb', line 24

def fatal(*args, &blk)
  _fatal(*args, &blk)
  exit 1
end