lib/lorekeeper/multi_logger.rb in lorekeeper-1.3.0 vs lib/lorekeeper/multi_logger.rb in lorekeeper-1.3.1

- old
+ new

@@ -9,9 +9,13 @@ def add_logger(logger) @loggers << logger end + def inspect + "Lorekeeper multilogger, loggers: #{@loggers.map(&:inspect)}" + end + def method_missing(method, *args, &block) result = @loggers.map do |logger| logger.public_send(method, *args, &block) if logger.respond_to?(method) end # We call all the methods, delete nils and duplicates.