MultiOutput
# File lib/fluent/plugin/out_copy.rb, line 30 def configure(conf) conf.elements.select {|e| e.name == 'store' }.each {|e| type = e['type'] unless type raise ConfigError, "Missing 'type' parameter on <store> directive" end $log.debug "adding store type=#{type.dump}" output = Plugin.new_output(type) output.configure(e) @outputs << output } end
# File lib/fluent/plugin/out_copy.rb, line 58 def emit(tag, es, chain) unless es.repeatable? m = MultiEventStream.new es.each {|time,record| m.add(time, record) } es = m end chain = OutputChain.new(@outputs, tag, es, chain) chain.next end
Generated with the Darkfish Rdoc Generator 2.