class Logger

Author: Alexey Lyanguzov (budabum@gmail.com)

Public Instance Methods

_add(severity, message, progname, &blk)
Alias for: add
_fatal(*args, &blk)
Alias for: fatal
add(severity, message, progname, &blk) click to toggle source
# 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
Also aliased as: _add
fatal(*args, &blk) click to toggle source
# File lib/uicov/ruby_patches.rb, line 24
def fatal(*args, &blk)
  _fatal(*args, &blk)
  exit 1
end
Also aliased as: _fatal

Private Instance Methods

add_count(severity) click to toggle source
# File lib/uicov/ruby_patches.rb, line 34
def add_count(severity) ; end
get_caller(idx=2) click to toggle source
# File lib/uicov/ruby_patches.rb, line 30
def get_caller(idx=2)
  caller[idx].sub(/.*\//, '')
end