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.


8
9
10
11
12
# File 'lib/icalendar/logger.rb', line 8

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