Class: Alog::Alogger

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

Overview

class Alogger Inherited from standard library Logger

Instance Method Summary collapse

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