Class: Shoes::LoggerCollection
- Inherits:
-
Object
- Object
- Shoes::LoggerCollection
- Defined in:
- shoes-core/lib/shoes/logger_collection.rb
Instance Method Summary collapse
- #<<(logger) ⇒ Object
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize ⇒ LoggerCollection
constructor
A new instance of LoggerCollection.
- #warn(message) ⇒ Object
Constructor Details
#initialize ⇒ LoggerCollection
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() forward(:debug, ) end |
#error(message) ⇒ Object
26 27 28 |
# File 'shoes-core/lib/shoes/logger_collection.rb', line 26 def error() forward(:error, ) end |
#info(message) ⇒ Object
18 19 20 |
# File 'shoes-core/lib/shoes/logger_collection.rb', line 18 def info() forward(:info, ) end |
#warn(message) ⇒ Object
22 23 24 |
# File 'shoes-core/lib/shoes/logger_collection.rb', line 22 def warn() forward(:warn, ) end |