Class: Hotwired::Logger

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

Instance Method Summary collapse

Constructor Details

#initialize(target = STDOUT) ⇒ Logger

Returns a new instance of Logger.



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

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

Instance Method Details

#file=(target) ⇒ Object



12
13
14
# File 'lib/hotwired/log.rb', line 12

def file=(target)
  @log_device = LogDevice.new target
end