Class: Logger
- Inherits:
-
Object
- Object
- Logger
- Defined in:
- lib/uicov/ruby_patches.rb
Overview
Author: Alexey Lyanguzov ([email protected])
Defined Under Namespace
Classes: Formatter
Instance Method Summary collapse
- #_add ⇒ Object
- #_fatal ⇒ Object
- #add(severity, message, progname, &blk) ⇒ Object
- #fatal(*args, &blk) ⇒ Object
Instance Method Details
#_add ⇒ Object
14 |
# File 'lib/uicov/ruby_patches.rb', line 14 alias :_add :add |
#_fatal ⇒ Object
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, , progname, &blk) progname_orig = self.progname self.progname = get_caller _add(severity, , 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 |