class ActiveSupport::BroadcastLogger
def method_missing(name, *args, **kwargs, &block)
def method_missing(name, *args, **kwargs, &block) loggers = @broadcasts.select { |logger| logger.respond_to?(name) } if loggers.none? super(name, *args, **kwargs, &block) elsif loggers.one? loggers.first.send(name, *args, **kwargs, &block) else loggers.map { |logger| logger.send(name, *args, **kwargs, &block) } end end