Class: DaimonSkycrawlers::Logger

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/daimon_skycrawlers/logger.rb', line 12

def initialize(logdev, shift_age = 0, shift_size = 1048576)
  @log = ::Logger.new(logdev, shift_age, shift_size)
  super(@log)
end

Class Method Details

.defaultObject



7
8
9
# File 'lib/daimon_skycrawlers/logger.rb', line 7

def default
  @default ||= DaimonSkycrawlers::Logger.new(STDOUT)
end