class Fluent::Plugin::OutFileFormatter
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::Plugin::Newline::Mixin#configure
# File lib/fluent/plugin/formatter_out_file.rb, line 40 def configure(conf) super @timef = time_formatter_create end
format(tag, time, record)
click to toggle source
# File lib/fluent/plugin/formatter_out_file.rb, line 45 def format(tag, time, record) header = '' header << "#{@timef.format(time)}#{@delimiter}" if @output_time header << "#{tag}#{@delimiter}" if @output_tag "#{header}#{Yajl.dump(record)}#{@newline}" end