Class: Shoes::LoggerCollection

Inherits:
Object
  • Object
show all
Defined in:
shoes-core/lib/shoes/logger_collection.rb

Instance Method Summary collapse

Constructor Details

#initializeLoggerCollection

Returns a new instance of LoggerCollection.



5
6
7
# File 'shoes-core/lib/shoes/logger_collection.rb', line 5

def initialize
  @loggers = []
end

Instance Method Details

#<<(logger) ⇒ Object



9
10
11
12
# File 'shoes-core/lib/shoes/logger_collection.rb', line 9

def <<(logger)
  @loggers << logger
  self
end

#debug(message) ⇒ Object



14
15
16
# File 'shoes-core/lib/shoes/logger_collection.rb', line 14

def debug(message)
  forward(:debug, message)
end

#error(message) ⇒ Object



26
27
28
# File 'shoes-core/lib/shoes/logger_collection.rb', line 26

def error(message)
  forward(:error, message)
end

#info(message) ⇒ Object



18
19
20
# File 'shoes-core/lib/shoes/logger_collection.rb', line 18

def info(message)
  forward(:info, message)
end

#warn(message) ⇒ Object



22
23
24
# File 'shoes-core/lib/shoes/logger_collection.rb', line 22

def warn(message)
  forward(:warn, message)
end