Class: Corona::Logger

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

Instance Method Summary collapse

Constructor Details

#initialize(target = STDOUT) ⇒ Logger

Returns a new instance of Logger.



4
5
6
7
# File 'lib/corona/log.rb', line 4

def initialize target=STDOUT
  super target
  self.level = Logger::DEBUG
end

Instance Method Details

#file=(target) ⇒ Object



8
9
10
# File 'lib/corona/log.rb', line 8

def file= target
  @logdev = LogDevice.new target
end