class Fluent::StdoutOutput
Constants
- OUTPUT_PROCS
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::Output#configure
# File lib/fluent/plugin/out_stdout.rb, line 38 def configure(conf) super @output_proc = OUTPUT_PROCS[@output_type] end
emit(tag, es, chain)
click to toggle source
# File lib/fluent/plugin/out_stdout.rb, line 43 def emit(tag, es, chain) es.each {|time,record| $log.write "#{Time.at(time).localtime} #{tag}: #{@output_proc.call(record)}\n" } $log.flush chain.next end