Class: Alog::Alogger
- Inherits:
-
Logger
- Object
- Logger
- Alog::Alogger
- Defined in:
- lib/alog.rb
Overview
class Alogger Inherited from standard library Logger
Instance Method Summary collapse
-
#initialize(args) ⇒ Alogger
constructor
A new instance of Alogger.
- #log(msg, type = :debug, &block) ⇒ Object
Constructor Details
#initialize(args) ⇒ Alogger
Returns a new instance of Alogger.
32 33 34 |
# File 'lib/alog.rb', line 32 def initialize(args) @log = Logger.new(*args) end |
Instance Method Details
#log(msg, type = :debug, &block) ⇒ Object
36 37 38 |
# File 'lib/alog.rb', line 36 def log(msg, type = :debug, &block) @log.send(type, msg) end |