lib/logstash-logger/multi_logger.rb in logstash-logger-0.15.0 vs lib/logstash-logger/multi_logger.rb in logstash-logger-0.15.1
- old
+ new
@@ -22,10 +22,10 @@
end
end
def formatter=(formatter)
@loggers.each do |logger|
- logger.formatter = formatter
+ logger.formatter ||= formatter
end
end
# Array of Loggers to be logged to. These can be anything that acts reasonably like a Logger.
attr_accessor :loggers