lib/lorekeeper/multi_logger.rb in lorekeeper-1.1.1 vs lib/lorekeeper/multi_logger.rb in lorekeeper-1.2.0
- old
+ new
@@ -1,12 +1,13 @@
-
+# frozen_string_literal: true
module Lorekeeper
# Allows to create a logger that will pass information to any logger registered
# It is useful so send the same message thought different loggers to different sinks
class MultiLogger
def initialize
@loggers = []
end
+
def add_logger(logger)
@loggers << logger
end
def method_missing(method, *args, &block)