Class: Icalendar::Logger

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/icalendar/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(sink, level = ::Logger::WARN) ⇒ Logger

Returns a new instance of Logger.



10
11
12
13
14
# File 'lib/icalendar/logger.rb', line 10

def initialize(sink, level = ::Logger::WARN)
  logger = ::Logger.new(sink)
  logger.level = level
  super logger
end