Class: Logger

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

Overview

Add in multiple device logging directly into Logger class

Defined Under Namespace

Classes: LogDevice

Instance Method Summary collapse

Instance Method Details

#attach(name) ⇒ Object

Creates or opens a secondary log file.



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

def attach(name)
  @logdev.attach(name)
end

#detach(name) ⇒ Object

Closes a secondary log file.



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

def detach(name)
  @logdev.detach(name)
end