Class: Fluent::EchoPoolOutput
- Inherits:
-
Output
- Object
- Output
- Fluent::EchoPoolOutput
- Defined in:
- lib/fluent/plugin/testing/out_echopool.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.echopool ⇒ Object
3 4 5 |
# File 'lib/fluent/plugin/testing/out_echopool.rb', line 3 def echopool @echopool ||= [] end |
Instance Method Details
#emit(tag, es, chain) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fluent/plugin/testing/out_echopool.rb', line 12 def emit(tag, es, chain) es.each {|time, record| self.class.echopool.push({ message: , record: record, tag: tag }) } chain.next end |